about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Functions/Zle/delete-whole-word-match2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6886ce626..712bb379e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2003-10-13  Peter Stephenson  <pws@csr.com>
 
+	* 19185: Functions/Zle/delete-whole-word-match: Bart spotted
+	context was wrong.
+
 	* unposted: Completion/Unix/Command/_perforce: make it
 	easier to use add-on commands with _perforce.
 
diff --git a/Functions/Zle/delete-whole-word-match b/Functions/Zle/delete-whole-word-match
index 9f7b29128..65e0cf044 100644
--- a/Functions/Zle/delete-whole-word-match
+++ b/Functions/Zle/delete-whole-word-match
@@ -11,7 +11,7 @@
 emulate -L zsh
 setopt extendedglob
 
-local curcontext=:zle:delete-whole-word
+local curcontext=:zle:$WIDGET
 local -a matched_words
 # Start and end of range of characters to remove.
 integer pos1 pos2