diff options
| author | Barton E. Schaefer <schaefer@zsh.org> | 2016-10-28 16:44:35 -0700 |
|---|---|---|
| committer | Barton E. Schaefer <schaefer@zsh.org> | 2016-10-28 16:44:35 -0700 |
| commit | 9cfd26bf10f530d746afadf3a04c4cf401fbbb9d (patch) | |
| tree | a7269df761e5b1c98ba2d8c0377f23cbf123c1af | |
| parent | users/22036: bracketed-paste: Document cutbuffer behaviour; clarify. (diff) | |
| download | zsh-9cfd26bf10f530d746afadf3a04c4cf401fbbb9d.tar zsh-9cfd26bf10f530d746afadf3a04c4cf401fbbb9d.tar.gz zsh-9cfd26bf10f530d746afadf3a04c4cf401fbbb9d.tar.bz2 zsh-9cfd26bf10f530d746afadf3a04c4cf401fbbb9d.tar.lz zsh-9cfd26bf10f530d746afadf3a04c4cf401fbbb9d.tar.xz zsh-9cfd26bf10f530d746afadf3a04c4cf401fbbb9d.tar.zst zsh-9cfd26bf10f530d746afadf3a04c4cf401fbbb9d.zip | |
unposted: handle empty pastes and "zle bracketed-paste variablename" form.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | Functions/Zle/bracketed-paste-magic | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -3,6 +3,11 @@ * users/22036: Doc/Zsh/zle.yo: bracketed-paste: Document cutbuffer behaviour; clarify. +2016-10-27 Barton E. Schaefer <schaefer@zsh.org> + + * unposted: Functions/Zle/bracketed-paste-magic: handle empty + pastes and "zle bracketed-paste variablename" form. + 2016-10-27 Daniel Shahaf <d.s@daniel.shahaf.name> * unposted: Doc/Zsh/compsys.yo, Doc/Zsh/contrib.yo: Minor diff --git a/Functions/Zle/bracketed-paste-magic b/Functions/Zle/bracketed-paste-magic index cf3cc6a59..a82045e08 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 @@ -206,7 +206,7 @@ bracketed-paste-magic() { # Reprocess $PASTED as an actual paste this time zle -U - $PASTED$'\e[201~' # append paste-end marker - zle .bracketed-paste + zle .bracketed-paste "$@" zle .split-undo # Arrange to display highlighting if necessary |
