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

When the cursor type changes mark it dirty but don't force it to redraw...

When the cursor type changes mark it dirty but don't force it to redraw immediately. This caused performance issues for tmux users. A comment in issue 4976
parent a941e227
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -625,8 +625,7 @@ static const int kDragThreshold = 3;
 
- (void)setCursorType:(ITermCursorType)value {
_drawingHelper.cursorType = value;
[self setCursorNeedsDisplay];
[self refresh];
[self markCursorDirty];
}
 
- (NSDictionary*)markedTextAttributes {
Loading
Loading
@@ -1042,10 +1041,10 @@ static const int kDragThreshold = 3;
}
 
- (void)markCursorDirty {
int currentCursorX = [_dataSource cursorX] - 1;
int currentCursorY = [_dataSource cursorY] - 1;
int currentCursorX = [_dataSource cursorX] - 1;
int currentCursorY = [_dataSource cursorY] - 1;
DLog(@"Mark cursor position %d, %d dirty.", currentCursorX, currentCursorY);
[_dataSource setCharDirtyAtCursorX:currentCursorX Y:currentCursorY];
[_dataSource setCharDirtyAtCursorX:currentCursorX Y:currentCursorY];
}
 
- (void)setCursorVisible:(BOOL)cursorVisible {
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