Skip to content
Snippets Groups Projects
Commit cb97a71a authored by George Nachman's avatar George Nachman
Browse files

Call refresh after changing font size to avoid doing a double redraw at two...

Call refresh after changing font size to avoid doing a double redraw at two different scroll positions. Issue 5836
parent aee52e0a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -718,13 +718,16 @@ static const int kDragThreshold = 3;
_secondaryFont.boldItalicVersion = [_secondaryFont computedBoldItalicVersion];
 
[self updateMarkedTextAttributes];
[self setNeedsDisplay:YES];
 
NSScrollView* scrollview = [self enclosingScrollView];
[scrollview setLineScroll:[self lineHeight]];
[scrollview setPageScroll:2 * [self lineHeight]];
[self updateNoteViewFrames];
[_delegate textViewFontDidChange];
// Refresh to avoid drawing before and after resize.
[self refresh];
[self setNeedsDisplay:YES];
}
 
- (void)changeFont:(id)fontManager
Loading
Loading
@@ -1128,6 +1131,8 @@ static const int kDragThreshold = 3;
_drawingHelper.copyModeSelecting = _delegate.textViewCopyModeSelecting;
_drawingHelper.copyModeCursorCoord = _delegate.textViewCopyModeCursorCoord;
_drawingHelper.passwordInput = _delegate.textViewPasswordInput;
DLog(@"drawing document visible rect %@", NSStringFromRect(self.enclosingScrollView.documentVisibleRect));
const NSRect *rectArray;
NSInteger rectCount;
Loading
Loading
Loading
Loading
@@ -335,7 +335,7 @@ typedef struct iTermTextColorContext {
const double y = line * _cellSize.height;
// An array of PTYTextViewBackgroundRunArray objects (one element per line).
// NSLog(@" draw line %d", line);
// NSLog(@"Draw line %d at %f", line, y);
NSData *matches = [_delegate drawingHelperMatchesOnLine:line];
screen_char_t* theLine = [self.delegate drawingHelperLineAtIndex:line];
NSIndexSet *selectedIndexes =
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment