Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in ZSH's vi emulation
- X-seq: zsh-workers 39811
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Bug in ZSH's vi emulation
- Date: Wed, 2 Nov 2016 16:19:26 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=V4Mnqw4jj2XZkakE6jbAwn0tqQ9vUFpwtLi6+eqNhk8=; b=Ewo3jLiX0V6urOeZY6NpwNq8lz8kJBVYXOesWEBOJzT6+6ac58rnWSWvuFqr3kToXL UQ6c3CUbkJPLfg3wZ7YCzDxcRirjqYuSt2IRyf+eB5uNxFpH/mn9pZ3RTthNEGlqgoBB AhGkCO3YHEqARKM3yQObDv/W76nmN1Kt9T8eKl6LPbp5ORjUEiWCDK3/ZZWIPbNfdurG AV6tYIuuV36y03SC0KdtyplLp2a3d7KyvEVxrDJRj1L8ZebA/gCdBXyD44ipoaxJqNR8 xzkzKUIIy3xB5W33ccg3ww5JHLae7SGu1EjxIPCexd8IxR2MZ1ig08c82RFKuQ7GK+WQ puOQ==
- In-reply-to: <11719.1478105483@hydra.kiddle.eu>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20161005080921.GB26647@raspi> <161005101938.ZM12590@torch.brasslantern.com> <20161102045925.GA6763@fujitsu.shahaf.local2> <11719.1478105483@hydra.kiddle.eu>
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