about summary refs log tree commit diff
path: root/Functions/Zle/delete-whole-word-match
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-04-19 14:16:22 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-04-19 14:16:22 +0000
commitc6dfb2999d51be6e71176358a2e14360fe6e6ee6 (patch)
treee781f3f174a3a2c7978d3b2ad89589e8439aec3e /Functions/Zle/delete-whole-word-match
parent0d101890d0faeaefa863099042e3510f5021fbc3 (diff)
downloadzsh-c6dfb2999d51be6e71176358a2e14360fe6e6ee6.tar.gz
zsh-c6dfb2999d51be6e71176358a2e14360fe6e6ee6.tar.xz
zsh-c6dfb2999d51be6e71176358a2e14360fe6e6ee6.zip
users/11419: zle copy-region-as-kill <string>
adds text to the kill ring
Diffstat (limited to 'Functions/Zle/delete-whole-word-match')
-rw-r--r--Functions/Zle/delete-whole-word-match3
1 files changed, 1 insertions, 2 deletions
diff --git a/Functions/Zle/delete-whole-word-match b/Functions/Zle/delete-whole-word-match
index 65e0cf044..978b95ee7 100644
--- a/Functions/Zle/delete-whole-word-match
+++ b/Functions/Zle/delete-whole-word-match
@@ -49,8 +49,7 @@ if [[ $WIDGET = *kill* ]]; then
   if [[ $LASTWIDGET = *kill* ]]; then
     CUTBUFFER="$CUTBUFFER$word"
   else
-    killring=("$CUTBUFFER" "${(@)killring[1,-2]}")
-    CUTBUFFER=$word
+    zle copy-region-as-kill "$word"
   fi
 fi
 BUFFER="${BUFFER[1,pos1]}${BUFFER[pos2,-1]}"