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

Only draw the line with the copy mode cursor when you press a key in copy mode

parent 9c877eeb
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1985,6 +1985,7 @@ ITERM_WEAKLY_REFERENCEABLE
}
 
- (void)handleKeyPressInCopyMode:(NSEvent *)event {
[self.textview setNeedsDisplayOnLine:_copyModeState.coord.y];
BOOL wasSelecting = _copyModeState.selecting;
NSString *string = event.charactersIgnoringModifiers;
unichar code = [string length] > 0 ? [string characterAtIndex:0] : 0;
Loading
Loading
@@ -2135,7 +2136,7 @@ ITERM_WEAKLY_REFERENCEABLE
if (self.copyMode) {
[_textview scrollLineNumberRangeIntoView:VT100GridRangeMake(_copyModeState.coord.y, 1)];
}
[self.textview setNeedsDisplay:YES]; // TODO optimize this and draw less
[self.textview setNeedsDisplayOnLine:_copyModeState.coord.y];
}
}
 
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