From fb0db3729795afdbc2c10cbedfa1e483189f6588 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 17 Apr 2008 16:18:41 +0000 Subject: fix vi-replace-chars --- Src/Zle/zle_vi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Zle/zle_vi.c') 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; -- cgit 1.4.1