* 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
Setup:
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.
Roman.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-02 15:17 UTC | newest]
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
Code repositories for project(s) associated with this public 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).