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 --- ChangeLog | 3 +++ Src/Zle/zle_vi.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 390a21c22..ab0db8de2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2008-04-17 Peter Stephenson + * 24829: Jun T.: Src/Zle/zle_vi.c: vi-replace-chars got broken + in the crossfire. + * 24825: Src/utils.c, Src/Zle/zle_word.c: fix internal word-boundary widgets and make zero-width punctuation characters always part of a word. 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