Skip to content
Snippets Groups Projects
Commit 06b17596 authored by Jack Chen (chendo)'s avatar Jack Chen (chendo)
Browse files

Remove all working directory entries when the buffer is cleared

parent 914f2d6c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -434,6 +434,9 @@ typedef struct PTYFontInfo PTYFontInfo;
// Returns true if any character in the buffer is selected.
- (BOOL)isAnyCharSelected;
 
// Clear working directories for when buffer is cleared
- (void)clearWorkingDirectories;
@end
 
//
Loading
Loading
Loading
Loading
@@ -2158,6 +2158,7 @@ static NSString* SESSION_ARRANGEMENT_WORKING_DIRECTORY = @"Working Directory";
//[TERMINAL cleanStream];
 
[SCREEN clearBuffer];
[TEXTVIEW clearWorkingDirectories];
// tell the shell to clear the screen
//[self writeTask:[NSData dataWithBytes:&formFeed length:1]];
}
Loading
Loading
@@ -2165,6 +2166,7 @@ static NSString* SESSION_ARRANGEMENT_WORKING_DIRECTORY = @"Working Directory";
- (void)clearScrollbackBuffer
{
[SCREEN clearScrollbackBuffer];
[TEXTVIEW clearWorkingDirectories];
}
 
- (BOOL)exited
Loading
Loading
Loading
Loading
@@ -2532,6 +2532,10 @@ static BOOL RectsEqual(NSRect* a, NSRect* b) {
targetSession:[dataSource session]];
}
 
- (void)clearWorkingDirectories {
[workingDirectoryAtLines removeAllObjects];
}
- (void)clearTextViewBuffer:(id)sender
{
[[dataSource session] clearBuffer];
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