summaryrefslogtreecommitdiff
path: root/Functions/Zle/delete-whole-word-match
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Zle/delete-whole-word-match')
-rw-r--r--Functions/Zle/delete-whole-word-match4
1 files changed, 2 insertions, 2 deletions
diff --git a/Functions/Zle/delete-whole-word-match b/Functions/Zle/delete-whole-word-match
index 978b95ee7..6f1ba6697 100644
--- a/Functions/Zle/delete-whole-word-match
+++ b/Functions/Zle/delete-whole-word-match
@@ -9,7 +9,7 @@
# saved for future yanking in the normal way.
emulate -L zsh
-setopt extendedglob
+setopt extendedglob xtrace
local curcontext=:zle:$WIDGET
local -a matched_words
@@ -49,7 +49,7 @@ if [[ $WIDGET = *kill* ]]; then
if [[ $LASTWIDGET = *kill* ]]; then
CUTBUFFER="$CUTBUFFER$word"
else
- zle copy-region-as-kill "$word"
+ zle copy-region-as-kill -- "$word"
fi
fi
BUFFER="${BUFFER[1,pos1]}${BUFFER[pos2,-1]}"