From dd85c0e955a60cc9ec19047d9814d0ce5bf37496 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sat, 10 Nov 2007 19:04:10 +0000 Subject: 24082: delete-whole-word-match failed on whitespace --- ChangeLog | 3 +++ Functions/Zle/delete-whole-word-match | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e2dd2b900..02cda0e31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-11-10 Peter Stephenson + * 24082: Functionz/Zle/delete-whole-word-match: failed if + cursor was on whitespace. + * Mikael Magnusson, 24076; 24081: Doc/Zsh/zle.yo, Functions/Zle/backward-kill-word-match, Functions/Zle/delete-whole-word-match, 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. -- cgit 1.4.1