summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Functions/Zle/kill-word-match2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 08b898789..13655b070 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-07-07  Peter Stephenson  <pws@csr.com>
+
+	* 18824: Functions/Zle/kill-word-match: deleted to the end
+	of the line owing to typo with substitution.
+
 2003-07-07  Oliver Kiddle  <opk@zsh.org>
 
 	* spotted by Bart: 18817: Functions/Prompts/prompt_adam2_setup:
diff --git a/Functions/Zle/kill-word-match b/Functions/Zle/kill-word-match
index 9d21c4a15..1bee0708a 100644
--- a/Functions/Zle/kill-word-match
+++ b/Functions/Zle/kill-word-match
@@ -26,7 +26,7 @@ while (( count-- )); do
 	    killring=("$CUTBUFFER" "${(@)killring[1,-2]}")
 	    CUTBUFFER=$word
 	fi
-	RBUFFER=$matched_words[6]
+	RBUFFER=${(j..)matched_words[6,7]}
     else
 	return 1
     fi