Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit c90905c

Browse files
fix #360: Current line highlighting always seen in preview of Highlighting Editor
1 parent 468642d commit c90905c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/AddIns/Debugger/Debugger.AddIn/Pads/AutoCompleteTextBox.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public AutoCompleteTextBox()
8686
this.editor.ClearValue(TextEditor.FontFamilyProperty);
8787
this.editor.ClearValue(TextEditor.FontSizeProperty);
8888
this.editor.ShowLineNumbers = false;
89+
this.editor.Options.HighlightCurrentLine = false;
8990
this.editor.WordWrap = false;
9091
this.editor.HorizontalScrollBarVisibility = ScrollBarVisibility.Hidden;
9192
this.editor.VerticalScrollBarVisibility = ScrollBarVisibility.Hidden;

src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Options/HighlightingOptions.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ void UpdatePreview()
596596
}
597597
textEditor.Select(0, 0);
598598
bracketHighlighter.SetHighlight(null);
599+
textEditor.Options.HighlightCurrentLine = false;
599600
item.ShowExample(textEditor.TextArea);
600601
ITextMarker m = textMarkerService.TextMarkers.SingleOrDefault();
601602
if (m != null && m.Tag != null) {

0 commit comments

Comments
 (0)