about summary refs log tree commit diff
path: root/Src/Zle/zle_word.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-04-18 11:49:24 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-04-18 11:49:24 +0000
commit067cfa3a06156d27a0e526c685b322c1212c2a2b (patch)
tree241e373234fc62c7a8cf6749fdc27216b757f3a1 /Src/Zle/zle_word.c
parent490f6cc51cd621452a4b6e36f525a03affd346f2 (diff)
downloadzsh-067cfa3a06156d27a0e526c685b322c1212c2a2b.tar.gz
zsh-067cfa3a06156d27a0e526c685b322c1212c2a2b.tar.xz
zsh-067cfa3a06156d27a0e526c685b322c1212c2a2b.zip
24839: fix misuse of variable in backwardkillword
Diffstat (limited to 'Src/Zle/zle_word.c')
-rw-r--r--Src/Zle/zle_word.c4
1 files changed, 2 insertions, 2 deletions
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;
 	}