@@ -296,8 +296,6 @@ public int TabWidth
296296 TextArea . LeftMargins . Add ( new CommitInfoMargin ( this ) { Margin = new Thickness ( 8 , 0 ) } ) ;
297297 TextArea . LeftMargins . Add ( new VerticalSeparatorMargin ( this ) ) ;
298298 TextArea . Caret . PositionChanged += OnTextAreaCaretPositionChanged ;
299- TextArea . LayoutUpdated += OnTextAreaLayoutUpdated ;
300- TextArea . PointerWheelChanged += OnTextAreaPointerWheelChanged ;
301299 TextArea . TextView . ContextRequested += OnTextViewContextRequested ;
302300 TextArea . TextView . VisualLinesChanged += OnTextViewVisualLinesChanged ;
303301 TextArea . TextView . Margin = new Thickness ( 4 , 0 ) ;
@@ -341,8 +339,6 @@ protected override void OnUnloaded(RoutedEventArgs e)
341339
342340 TextArea . LeftMargins . Clear ( ) ;
343341 TextArea . Caret . PositionChanged -= OnTextAreaCaretPositionChanged ;
344- TextArea . LayoutUpdated -= OnTextAreaLayoutUpdated ;
345- TextArea . PointerWheelChanged -= OnTextAreaPointerWheelChanged ;
346342 TextArea . TextView . ContextRequested -= OnTextViewContextRequested ;
347343 TextArea . TextView . VisualLinesChanged -= OnTextViewVisualLinesChanged ;
348344
@@ -392,18 +388,6 @@ private void OnTextAreaCaretPositionChanged(object sender, EventArgs e)
392388 InvalidateVisual ( ) ;
393389 }
394390
395- private void OnTextAreaLayoutUpdated ( object sender , EventArgs e )
396- {
397- if ( TextArea . IsFocused )
398- InvalidateVisual ( ) ;
399- }
400-
401- private void OnTextAreaPointerWheelChanged ( object sender , PointerWheelEventArgs e )
402- {
403- if ( ! TextArea . IsFocused && ! string . IsNullOrEmpty ( _highlight ) )
404- Focus ( ) ;
405- }
406-
407391 private void OnTextViewContextRequested ( object sender , ContextRequestedEventArgs e )
408392 {
409393 var selected = SelectedText ;
@@ -445,6 +429,8 @@ private void OnTextViewVisualLinesChanged(object sender, EventArgs e)
445429 break ;
446430 }
447431 }
432+
433+ InvalidateVisual ( ) ;
448434 }
449435
450436 private TextMate . Installation _textMate = null ;
0 commit comments