zsh-workers
 help / color / mirror / code / Atom feed
* zle -M doesn't work in zle-line-finish (zsh 5.9)
@ 2022-05-24 20:32 Bart Schaefer
  0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 2022-05-24 20:32 UTC (permalink / raw)
  To: Zsh hackers list

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-24 20:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-24 20:32 zle -M doesn't work in zle-line-finish (zsh 5.9) Bart Schaefer

Code repositories for project(s) associated with this inbox:

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).