help / color / Atom feed
* BUG: "zle reset-prompt" prints "n" when called from a trap
@ 2020-01-02 15:15 Roman Perepelitsa
  0 siblings, 0 replies; only message in thread
From: Roman Perepelitsa @ 2020-01-02 15:15 UTC (permalink / raw)
  To: Zsh hackers list


    autoload -U compinit && compinit
    zstyle ':completion:*' menu select
    trap 'zle reset-prompt; return 130' INT

Now type:

    grep --<TAB><CTRL-C>

It looks as expected after <TAB>:

    adam% grep --
    zsh: do you wish to see all 132 possibilities (44 lines)?

But not as expected after the following <CTRL-C>:

    ndam% grep --
    adam% grep --

Note "ndam" on the first line. `zle reset-prompt` has unexpectedly
printed "n" at the first column followed by line feed.

Expected output:

    adam% grep --

This is the output I would get if I didn't trap SIGINT or didn't call
`zle reset-prompt` from the trap.

I haven't looked into why this is happening.


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

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-02 15:15 BUG: "zle reset-prompt" prints "n" when called from a trap Roman Perepelitsa


Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git