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

Fix bug where option-click with scrollback overflow moved a crazy number of...

Fix bug where option-click with scrollback overflow moved a crazy number of lines vertically. Don't accept option-click's outside the live area. Fixes issue 3347.
parent 11b6a26a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -3967,7 +3967,11 @@ static double EuclideanDistance(NSPoint p1, NSPoint p2) {
NSPoint clickPoint = [self clickPoint:event];
int x = clickPoint.x;
int y = clickPoint.y;
int cursorY = [dataSource absoluteLineNumberOfCursor];
if (y < [dataSource numberOfLines] - [dataSource height]) {
DLog(@"Option-click outside live area, aborting.");
return;
}
int cursorY = [dataSource absoluteLineNumberOfCursor] - [dataSource totalScrollbackOverflow];
int cursorX = [dataSource cursorX];
int width = [dataSource width];
VT100Terminal *terminal = [dataSource terminal];
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