about summary refs log tree commit diff
path: root/Functions/Zle/kill-word-match
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Zle/kill-word-match')
-rw-r--r--Functions/Zle/kill-word-match2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/Zle/kill-word-match b/Functions/Zle/kill-word-match
index 55e253dea..5fcaeb86c 100644
--- a/Functions/Zle/kill-word-match
+++ b/Functions/Zle/kill-word-match
@@ -22,7 +22,7 @@ while (( count-- )); do
     if [[ -n $done || $LASTWIDGET = *kill* ]]; then
       CUTBUFFER="$CUTBUFFER$word"
     else
-      zle copy-region-as-kill $word
+      zle copy-region-as-kill -- $word
     fi
     RBUFFER=${(j..)matched_words[6,7]}
   else