From ae4c035cded714aea795593fc56442fa921d70fc Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Wed, 2 Nov 2016 16:27:29 -0700 Subject: 39811: vi-repeat-change must not be the "motion" of vi-change, lest it infinitely repeat itself --- Src/Zle/zle_vi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/Zle/zle_vi.c b/Src/Zle/zle_vi.c index baa2064e9..1e0402dff 100644 --- a/Src/Zle/zle_vi.c +++ b/Src/Zle/zle_vi.c @@ -780,7 +780,7 @@ int virepeatchange(UNUSED(char **args)) { /* make sure we have a change to repeat */ - if (!vichgbuf || vichgflag) + if (!vichgbuf || vichgflag || virangeflag) return 1; /* restore or update the saved count and buffer */ if (zmod.flags & MOD_MULT) { -- cgit 1.4.1