mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-16 09:01:25 +01:00
24839: fix misuse of variable in backwardkillword
This commit is contained in:
parent
490f6cc51c
commit
067cfa3a06
2 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue