Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zle -M doesn't work in zle-line-finish (zsh 5.9)
- X-seq: zsh-workers 50284
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: zle -M doesn't work in zle-line-finish (zsh 5.9)
- Date: Tue, 24 May 2022 13:32:29 -0700
- Archived-at: <https://zsh.org/workers/50284>
- List-id: <zsh-workers.zsh.org>
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