Permalink
Browse files

Prevent scroller flash when changing line wrap.

  • Loading branch information...
1 parent 0183b41 commit 4340861ec4c67a1d7c5f5974d34ba2d686f75c60 @mugginsoft committed Sep 27, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 SMLTextView.m
View
@@ -1058,8 +1058,10 @@ - (void)updateLineWrap {
[[fragaria objectForKey:ro_MGSFOLineNumbers] updateLineNumbersForClipView:[[self enclosingScrollView] contentView] checkWidth:NO recolour:YES];
// redraw the display and reposition scrollers
+ NSDisableScreenUpdates();
[textScrollView display];
[textScrollView reflectScrolledClipView:textScrollView.contentView];
+ NSEnableScreenUpdates();
}

0 comments on commit 4340861

Please sign in to comment.