about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-11-10 19:04:10 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-11-10 19:04:10 +0000
commitdd85c0e955a60cc9ec19047d9814d0ce5bf37496 (patch)
treeeafd3126e014365440a43683ca84997211146fcf /Functions
parente79b61f62d5ddb97998b5f034b4f0680c443ac92 (diff)
downloadzsh-dd85c0e955a60cc9ec19047d9814d0ce5bf37496.tar.gz
zsh-dd85c0e955a60cc9ec19047d9814d0ce5bf37496.tar.xz
zsh-dd85c0e955a60cc9ec19047d9814d0ce5bf37496.zip
24082: delete-whole-word-match failed on whitespace
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Zle/delete-whole-word-match2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/Zle/delete-whole-word-match b/Functions/Zle/delete-whole-word-match
index 51314cfc0..5b31ad5b0 100644
--- a/Functions/Zle/delete-whole-word-match
+++ b/Functions/Zle/delete-whole-word-match
@@ -31,7 +31,7 @@ fi
 if [[ -n "${matched_words[4]}" ]]; then
     # There's whitespace at the cursor position, so only delete
     # up to the cursor position.
-    pos2=$CURSOR
+    (( pos2 = CURSOR + 1 ))
 else
     # No whitespace at the cursor position, so delete the
     # current character and any following wordcharacters.