1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-12-28 16:15:02 +01:00

37971: fix potential issues when interacting with user-defined widgets

Cf. users/21284: Eric Freese
This commit is contained in:
Barton E. Schaefer 2016-02-14 11:35:18 -08:00
parent f07a1bd009
commit e54578ff74
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
2016-02-14 Barton E. Schaefer <schaefer@zsh.org>
* 37971 (cf. users/21284: Eric Freese):
Functions/Zle/bracketed-paste-magic: fix potential issues when
interacting with user-defined widgets
* 37961: Src/Zle/complist.c: in interactive menuselection, use of
"compadd -x" (e.g. the "warnings" zstyle) may have replaced the
completion list, so skip highlighting of the current selection

View file

@ -175,7 +175,7 @@ bracketed-paste-magic() {
case $REPLY in
(${~bpm_active}) function () {
emulate -L $bpm_emulate; set -$bpm_opts
zle $REPLY
zle $REPLY -w
};;
(*) zle .self-insert;;
esac
@ -184,7 +184,7 @@ bracketed-paste-magic() {
PASTED=$BUFFER
# Reset the undo state
zle undo $bpm_undo
zle .undo $bpm_undo
UNDO_LIMIT_NO=$bpm_limit
zle -K $bpm_keymap