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

Fix a crash on launch bug where a selection could have a negative endpoint,...

Fix a crash on launch bug where a selection could have a negative endpoint, causing us to look up a long-gone line. Presumably this occurs because of the 10k line cap on session restoration.
parent 9f92cf70
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -644,6 +644,12 @@ static NSString *const kiTermSubSelectionMode = @"Mode";
}
 
- (VT100GridWindowedRange)rangeByExtendingRangePastNulls:(VT100GridWindowedRange)range {
if (range.coordRange.start.y < 0) {
range.coordRange.start.y = 0;
}
if (range.coordRange.end.y < 0) {
range.coordRange.end.y = 0;
}
VT100GridWindowedRange unflippedRange = [self unflippedRangeForRange:range mode:_selectionMode];
VT100GridRange nulls =
[_delegate selectionRangeOfTerminalNullsOnLine:unflippedRange.coordRange.start.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