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

zle -M doesn't work in zle-line-finish (zsh 5.9)



More accurately, it works but it screws up the output and the prompt.
The last line of output is erased and the cursor is positioned as if
the prompt were there, but there is no prompt.

Minimal test case:

Macadamia% zle-line-finish () {
  zle -M FINISHED
}
Macadamia% printf "%s\n" line1 line2
line1
line2
Macadamia% zle -N zle-line-finish
Macadamia% printf "%s\n" line1 line2
line1

FINISHED

Cursor is on the line above FINISHED, 11 spaces to the right.




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