Skip to content

Commit

Permalink
Fix restore activity on cold start
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Sep 14, 2018
1 parent 2f4b2ae commit 49791df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Blink/TermController.m
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ - (void)restoreUserActivityState:(NSUserActivity *)activity
char ctrlK = 'k' - 'a' + 1;
// delete all input on current line - ctrl+a ctrl+k
// run command
[_termDevice write:[NSString stringWithFormat:@"%c%c%@\n", ctrlA, ctrlK, cmdLine]];
if (self.userActivity) {
[_termDevice write:[NSString stringWithFormat:@"%c%c%@\n", ctrlA, ctrlK, cmdLine]];
} else {
self.userActivity = activity;
}
}

- (void)viewDidLoad
Expand Down

0 comments on commit 49791df

Please sign in to comment.