diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-04-18 11:49:24 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-04-18 11:49:24 +0000 |
commit | 067cfa3a06156d27a0e526c685b322c1212c2a2b (patch) | |
tree | 241e373234fc62c7a8cf6749fdc27216b757f3a1 | |
parent | 490f6cc51cd621452a4b6e36f525a03affd346f2 (diff) | |
download | zsh-067cfa3a06156d27a0e526c685b322c1212c2a2b.tar.gz zsh-067cfa3a06156d27a0e526c685b322c1212c2a2b.tar.xz zsh-067cfa3a06156d27a0e526c685b322c1212c2a2b.zip |
24839: fix misuse of variable in backwardkillword
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Src/Zle/zle_word.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 438148bc0..8b24ad70d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-04-18 Peter Stephenson <pws@csr.com> + + * 24839: Src/Zle/zle_word.c: misuse of variable in 24825. + 2008-04-17 Peter Stephenson <pws@csr.com> * 24829: Jun T.: Src/Zle/zle_vi.c: vi-replace-chars got broken diff --git a/Src/Zle/zle_word.c b/Src/Zle/zle_word.c index ef8220056..83f7a4ece 100644 --- a/Src/Zle/zle_word.c +++ b/Src/Zle/zle_word.c @@ -464,14 +464,14 @@ backwardkillword(char **args) while (x) { int pos = x; DECPOS(pos); - if (ZC_iword(zleline[x])) + if (ZC_iword(zleline[pos])) break; x = pos; } while (x) { int pos = x; DECPOS(pos); - if (!ZC_iword(zleline[x])) + if (!ZC_iword(zleline[pos])) break; x = pos; } |