Skip to content

Commit 9ef5438

Browse files
committed
[Bundle] TextDiff: add TextEditor scope to ease python bindings
1 parent aaa4ad3 commit 9ef5438

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TextDiff.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TextDiff : public TextEditor {
3232
void SetText(const std::string_view& left, const std::string_view& right);
3333

3434
// specify a new language
35-
void SetLanguage(const Language* l);
35+
void SetLanguage(const TextEditor::Language* l);
3636

3737
// specify the background color for added/deleted lines
3838
inline void SetColors(ImU32 ac, ImU32 dc) { addedColor = ac; deletedColor = dc; }
@@ -48,7 +48,7 @@ class TextDiff : public TextEditor {
4848
inline void AddMarker(int /* line */, ImU32 /* lineNumberColor */, ImU32 /* textColor */, const std::string_view& /* lineNumberTooltip */, const std::string_view& /* textTooltip */) {}
4949
inline void ClearMarkers() {}
5050

51-
inline void SetLineDecorator(float /* width */, std::function<void(Decorator& decorator)> /* callback */) {}
51+
inline void SetLineDecorator(float /* width */, std::function<void(TextEditor::Decorator& decorator)> /* callback */) {}
5252
inline void ClearLineDecorator() {}
5353

5454
inline void SetLineNumberContextMenuCallback(std::function<void(int line)> /* callback */) {}

0 commit comments

Comments
 (0)