Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug in ZSH's vi emulation



On Nov 2,  5:51pm, Oliver Kiddle wrote:
}
} checking virangeflag at the top of virepeatchange will do the job.

Regardless of what else eventually happens, this seems like a wise idea.


diff --git a/Src/Zle/zle_vi.c b/Src/Zle/zle_vi.c
index baa2064..1e0402d 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) {



Messages sorted by: Reverse Date, Date, Thread, Author