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

Remove the last command mark when the current command is aborted, as happens...

Remove the last command mark when the current command is aborted, as happens when you resize the window at a bash prompt. Issue 4504
parent 63300935
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -3630,6 +3630,12 @@ static NSString *const kInilineFileInset = @"inset"; // NSValue of NSEdgeInsets
 
- (void)terminalAbortCommand {
DLog(@"FinalTerm: terminalAbortCommand");
VT100ScreenMark *screenMark = [self lastCommandMark];
if (screenMark) {
DLog(@"Removing last command mark %@", screenMark);
[intervalTree_ removeObject:screenMark];
}
commandStartX_ = commandStartY_ = -1;
[delegate_ screenCommandDidEndWithRange:VT100GridCoordRangeMake(-1, -1, -1, -1)];
}
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