help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: zle -M doesn't work in zle-line-finish (zsh 5.9)
Date: Tue, 24 May 2022 13:32:29 -0700	[thread overview]
Message-ID: <CAH+w=7boYp5O4xfPQfebsBaCwgATcbeN8Pq091ba5PaZuKHW2Q@mail.gmail.com> (raw)

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 () {
Macadamia% printf "%s\n" line1 line2
Macadamia% zle -N zle-line-finish
Macadamia% printf "%s\n" line1 line2


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

                 reply	other threads:[~2022-05-24 20:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7boYp5O4xfPQfebsBaCwgATcbeN8Pq091ba5PaZuKHW2Q@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    --subject='Re: zle -M doesn'\''t work in zle-line-finish (zsh 5.9)' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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


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).