-
Notifications
You must be signed in to change notification settings - Fork 33
Description
I think I've seen this with a few different actions but the one that I know is repeatable is when I type 'S' in command mode. The following sequence does it for me reliably.
- Either open a new terminal or just hit to get a fresh prompt.
- Type
<esc>S
At this time, the prompt jumps up deleting whatever line came before it. In my case, I use a two-line prompt, and both lines in the prompt jump up to delete the line of output before them.
To illustrate, I open up a new terminal and echo some output. At this point, my terminal looks like this:
Last login: Wed Sep 8 14:38:23 on ttys004
╭─ ~ ✔
╰─ echo "output to be clobbered by the next prompt"
output to be clobbered by the next prompt
╭─ ~ ✔
╰─
Then, I hit <esc>S and my terminal looks like this:
Last login: Wed Sep 8 14:38:23 on ttys004
╭─ ~ ✔
╰─ echo "output to be clobbered by the next prompt"
╭─ ~ ✔
╰─
Notice that the line of output following the echo got eaten and my prompt is now one line higher in the terminal than it started at.
This is something I run into all the time because I often start typing a command, realize that I needed to run something different first, and I hit <esc>S to start over. Occasionally, some output that was important is clobbered by this bug.