Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zle reset-prompt with prompt that is COLUMNS wide eats line above promptâs first line



Hi!

Running zle reset-prompt with a prompt that is COLUMNS wide eats the
line above promptâs first line.  Hereâs a set-up to try it with:

PS1=${(l:COLUMNS:)}$'\n'
bindkey '^^' reset-prompt

Each time you press CTRL-^ youâll be eating the line above the first
line of the prompt.  If you change PS1 to ${(l:COLUMNS-1)}$'\n' this
doesnât happen.

Would it be possible to have prompt that is COLUMNS wide and have this
not happen?



Messages sorted by: Reverse Date, Date, Thread, Author