diff options
Diffstat (limited to 'Functions/Zle')
-rw-r--r-- | Functions/Zle/backward-kill-word-match | 2 | ||||
-rw-r--r-- | Functions/Zle/delete-whole-word-match | 4 | ||||
-rw-r--r-- | Functions/Zle/kill-word-match | 2 |
3 files changed, 4 insertions, 4 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 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]}" 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 |