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