diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-04-17 16:18:41 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-04-17 16:18:41 +0000 |
commit | fb0db3729795afdbc2c10cbedfa1e483189f6588 (patch) | |
tree | 08cd0f1766a734435e667dbeaacf378f86d66e95 /Src | |
parent | 3006b5ca1203e3ea30f5f4aae3e6e3f3e9fa758a (diff) | |
download | zsh-fb0db3729795afdbc2c10cbedfa1e483189f6588.tar.gz zsh-fb0db3729795afdbc2c10cbedfa1e483189f6588.tar.xz zsh-fb0db3729795afdbc2c10cbedfa1e483189f6588.zip |
fix vi-replace-chars
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/zle_vi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_vi.c b/Src/Zle/zle_vi.c index 068274a8e..c807da359 100644 --- a/Src/Zle/zle_vi.c +++ b/Src/Zle/zle_vi.c @@ -497,7 +497,7 @@ vireplacechars(UNUSED(char **args)) int n = zmult, origcs = zlecs, fail = 0; if (n > 0) { - while (n > 0) { + while (n-- > 0) { if (zlecs == zlell || zleline[zlell] == ZWC('\n')) { fail = 1; break; |