You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, when PS1 is long, the buffer while doing a ctrl+r search looks wonky. This doesn't happen in bash.
You can reproduce by opening two shells. One with PS1='\u@\h:\w\$ ' and another with the default or something minimal like PS1='\$ '. Press ctrl+r in both and note that, in the first shell, some garbage text from the trailing portion of the prompt that doesn't overlap with (reverse-i-search)':` lingers until you end the search.
The text was updated successfully, but these errors were encountered:
Mostly opening this so I can remember to fix this if I can't come up with a fix before I get distracted...
This is most easily demonstrated in this screencast: https://asciinema.org/a/BPyNDjxbRoJ0Kd7F3jSzFflRx
Basically, when
PS1
is long, the buffer while doing actrl+r
search looks wonky. This doesn't happen in bash.You can reproduce by opening two shells. One with
PS1='\u@\h:\w\$ '
and another with the default or something minimal likePS1='\$ '
. Pressctrl+r
in both and note that, in the first shell, some garbage text from the trailing portion of the prompt that doesn't overlap with(reverse-i-search)
':` lingers until you end the search.The text was updated successfully, but these errors were encountered: