about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-10-13 17:23:01 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-10-13 17:23:01 +0000
commitdf3c2c64a5e3dd2921719a5a31ff4197e7e3b17b (patch)
tree3319a656a872e4c8c43662a0002e174adf3691ad
parenta190add8594baa85341215b7d689a245681ed88b (diff)
downloadzsh-df3c2c64a5e3dd2921719a5a31ff4197e7e3b17b.tar.gz
zsh-df3c2c64a5e3dd2921719a5a31ff4197e7e3b17b.tar.xz
zsh-df3c2c64a5e3dd2921719a5a31ff4197e7e3b17b.zip
19185: wrong context in delete-whole-word-match
-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