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

Multiline PROMPT eats line on zle redisplay (when first line is full-width)



To reproduce:

PROMPT="${(l:$COLUMNS::-:)}
> "
function redisp { zle redisplay; }
zle -N redisp
bindkey "^Q" redisp

Press ctrl-q and the line above the prompt is gone

Use $COLUMNS - 1 instead and everything works fine.

Tested on aa8157b463c18489b378da322f46574bd9ab8dbb (May 1 2017) with `zsh -f`


Ole J (not subscribed so CC is appreciated)



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