Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Crash when undoing pasted text when bracketed-paste-magic is enabled



On 2026-07-17 11:26:37 +0200, Lukáš Zaoral wrote:
> $ cat .zshrc
> bindkey "^_" undo
> autoload -Uz bracketed-paste-magic
> zle -N bracketed-paste bracketed-paste-magic
> $ ZDOTDIR=$PWD zsh
> % 
> // First input some random text, then paste another piece of text using ctrl+shift+v,
> // then undo that with ctrl+_ couple of times.
> zsh: segmentation fault (core dumped)

zsh 5.9 (Debian/unstable zsh package) is also affected.

The first ^_ undoes the paste, a second ^_ undoes the text insertion
done just before and places the cursor at an incorrect position, and
a third ^_ makes zsh segfault.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)




Messages sorted by: Reverse Date, Date, Thread, Author