Re: Crash when undoing pasted text when bracketed-paste-magic is enabled
Vincent Lefevre <[email protected]> Fri, 17 Jul 2026 12:58:09 +0200
| Newsgroups | gmane.comp.shells.zsh.devel |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> - 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)