Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shell integration: check for saved PS1 value before using it
On bash it's possible to hit ^C before we remembered the PS1 which would cause the shell to end up with an empty PS1, making it unclear that the ^C actually worked as there is no prompt left. I'm not sure I understand the need to mess with the variable every time (could just add the OSC codes if not already present and never remove them?), but at least make it so we don't end up with an empty prompt line by checking the saved value isn't empty.
- Loading branch information