Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(cherry picked from commit 8f5af40)
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/Functions/Zle/bracketed-paste-magic b/Functions/Zle/bracketed-paste-magic | ||
index 4baae82..840091b 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 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters