diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Functions/Zle/bracketed-paste-magic | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 98c118527..eef3750a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-09-24 Bart Schaefer <schaefer@brasslantern.com> + + * unposted (see 44772): Functions/Zle/bracketed-paste-magic: + quote the string argument to zle -U + 2019-09-20 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> * 44768: Completion/Unix/Command/_tar: improve completion of diff --git a/Functions/Zle/bracketed-paste-magic b/Functions/Zle/bracketed-paste-magic index 4baae823e..840091b44 100644 --- a/Functions/Zle/bracketed-paste-magic +++ b/Functions/Zle/bracketed-paste-magic @@ -162,7 +162,7 @@ bracketed-paste-magic() { # There are active widgets. Reprocess $PASTED as keystrokes. NUMERIC=1 - zle -U - $PASTED + zle -U - "$PASTED" # Just in case there are active undo widgets @@ -212,7 +212,7 @@ bracketed-paste-magic() { # Arrange to display highlighting if necessary if [[ -z $zle_highlight || -n ${(M)zle_highlight:#paste:*} ]]; then zle -R - zle .read-command && zle -U - $KEYS + zle .read-command && zle -U - "$KEYS" fi } |