@@ -296,8 +296,6 @@ public int TabWidth
296
296
TextArea . LeftMargins . Add ( new CommitInfoMargin ( this ) { Margin = new Thickness ( 8 , 0 ) } ) ;
297
297
TextArea . LeftMargins . Add ( new VerticalSeparatorMargin ( this ) ) ;
298
298
TextArea . Caret . PositionChanged += OnTextAreaCaretPositionChanged ;
299
- TextArea . LayoutUpdated += OnTextAreaLayoutUpdated ;
300
- TextArea . PointerWheelChanged += OnTextAreaPointerWheelChanged ;
301
299
TextArea . TextView . ContextRequested += OnTextViewContextRequested ;
302
300
TextArea . TextView . VisualLinesChanged += OnTextViewVisualLinesChanged ;
303
301
TextArea . TextView . Margin = new Thickness ( 4 , 0 ) ;
@@ -341,8 +339,6 @@ protected override void OnUnloaded(RoutedEventArgs e)
341
339
342
340
TextArea . LeftMargins . Clear ( ) ;
343
341
TextArea . Caret . PositionChanged -= OnTextAreaCaretPositionChanged ;
344
- TextArea . LayoutUpdated -= OnTextAreaLayoutUpdated ;
345
- TextArea . PointerWheelChanged -= OnTextAreaPointerWheelChanged ;
346
342
TextArea . TextView . ContextRequested -= OnTextViewContextRequested ;
347
343
TextArea . TextView . VisualLinesChanged -= OnTextViewVisualLinesChanged ;
348
344
@@ -392,18 +388,6 @@ private void OnTextAreaCaretPositionChanged(object sender, EventArgs e)
392
388
InvalidateVisual ( ) ;
393
389
}
394
390
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
-
407
391
private void OnTextViewContextRequested ( object sender , ContextRequestedEventArgs e )
408
392
{
409
393
var selected = SelectedText ;
@@ -445,6 +429,8 @@ private void OnTextViewVisualLinesChanged(object sender, EventArgs e)
445
429
break ;
446
430
}
447
431
}
432
+
433
+ InvalidateVisual ( ) ;
448
434
}
449
435
450
436
private TextMate . Installation _textMate = null ;
0 commit comments