From 9cfd26bf10f530d746afadf3a04c4cf401fbbb9d Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Fri, 28 Oct 2016 16:44:35 -0700 Subject: unposted: handle empty pastes and "zle bracketed-paste variablename" form. --- Functions/Zle/bracketed-paste-magic | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Functions') 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 -- cgit 1.4.1