File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -3646,7 +3646,7 @@ protected override bool OnDrawingContent ()
3646
3646
3647
3647
_isDrawing = false ;
3648
3648
3649
- return true ;
3649
+ return false ;
3650
3650
}
3651
3651
3652
3652
/// <inheritdoc/>
Original file line number Diff line number Diff line change @@ -281,17 +281,13 @@ private void ApplySyntaxHighlighting ()
281
281
AllSuggestions = _keywords . ToList ( )
282
282
} ;
283
283
284
- _textView . TextChanged += ( s , e ) => HighlightTextBasedOnKeywords ( ) ;
285
- _textView . DrawingContent += ( s , e ) => HighlightTextBasedOnKeywords ( ) ;
286
- _textView . DrawComplete += ( s , e ) => HighlightTextBasedOnKeywords ( ) ;
284
+ // DrawingText happens before DrawingContent so we use it to highlight
285
+ _textView . DrawingText += ( s , e ) => HighlightTextBasedOnKeywords ( ) ;
287
286
}
288
287
289
288
private void ClearAllEvents ( )
290
289
{
291
- _textView . ClearEventHandlers ( "TextChanged" ) ;
292
- _textView . ClearEventHandlers ( "DrawContent" ) ;
293
- _textView . ClearEventHandlers ( "DrawContentComplete" ) ;
294
-
290
+ _textView . ClearEventHandlers ( "DrawingText" ) ;
295
291
_textView . InheritsPreviousAttribute = false ;
296
292
}
297
293
You can’t perform that action at this time.
0 commit comments