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 ()
36463646
36473647 _isDrawing = false ;
36483648
3649- return true ;
3649+ return false ;
36503650 }
36513651
36523652 /// <inheritdoc/>
Original file line number Diff line number Diff line change @@ -281,17 +281,13 @@ private void ApplySyntaxHighlighting ()
281281 AllSuggestions = _keywords . ToList ( )
282282 } ;
283283
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 ( ) ;
287286 }
288287
289288 private void ClearAllEvents ( )
290289 {
291- _textView . ClearEventHandlers ( "TextChanged" ) ;
292- _textView . ClearEventHandlers ( "DrawContent" ) ;
293- _textView . ClearEventHandlers ( "DrawContentComplete" ) ;
294-
290+ _textView . ClearEventHandlers ( "DrawingText" ) ;
295291 _textView . InheritsPreviousAttribute = false ;
296292 }
297293
You can’t perform that action at this time.
0 commit comments