From c6dfb2999d51be6e71176358a2e14360fe6e6ee6 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 19 Apr 2007 14:16:22 +0000 Subject: users/11419: zle copy-region-as-kill adds text to the kill ring --- Functions/Zle/delete-whole-word-match | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Functions/Zle/delete-whole-word-match') 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]}" -- cgit 1.4.1