1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-12-15 20:51:27 +01:00

24839: fix misuse of variable in backwardkillword

This commit is contained in:
Peter Stephenson 2008-04-18 11:49:24 +00:00
parent 490f6cc51c
commit 067cfa3a06
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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;
}