mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
unposted: handle empty pastes and "zle bracketed-paste variablename" form.
This commit is contained in:
parent
3881c6b9a4
commit
9cfd26bf10
2 changed files with 7 additions and 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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue