Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: vi repeats
- X-seq: zsh-workers 39989
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: vi repeats
- Date: Sun, 20 Nov 2016 01:50:27 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1479603028; bh=80ioLzqeRAUTDqK15thohCxu5Uc6FQqEddCuYfrfVRs=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=Tj0HWbR5YmXUH6ddKhkUU9Rha/ZZkUt8DWOA4Q+PKk7tLD0z5FIAZhrVf2yqs+RfLY2xORvq8Yyj0rJbSQa9AWOQn+IXxGvH17UoeR8pnk9EmmRt60HIe8/nWsfmXB3QNVTSCTWKhiCo+H3l5QfeV+i5g87jbadbEjGGz0iZK1rR1CB8KgZG+I9qxeqRMLkgsFYUXXazwzDhN8YnPGxMPk8UYcU0fDmC+1gn8wbIaQKnZPz2HtpXv5kbG6bzxjrZxAliqlhHMpVnc5pIpWV+oayGWqbgvr1zQKSVAjIss6C1BoefDKNzfYAXHXP9JexN8HxhCeTtQ074M+tZGIcniQ==
- In-reply-to: <97192.1479569191@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: <97192.1479569191@hydra.kiddle.eu>
The following is also needed because makezleparams defaults $NUMERIC to
being unset.
Oliver
diff --git a/Src/Zle/zle_thingy.c b/Src/Zle/zle_thingy.c
index 8a6904c..c709285 100644
--- a/Src/Zle/zle_thingy.c
+++ b/Src/Zle/zle_thingy.c
@@ -679,8 +679,14 @@ bin_zle_flags(char *name, char **args, UNUSED(Options ops), UNUSED(char func))
w->flags |= ZLE_KEEPSUFFIX;
*/
else if (!strcmp(*flag, "vichange")) {
- if (invicmdmode())
+ if (invicmdmode()) {
startvichange(-1);
+ if (zmod.flags & (MOD_MULT|MOD_TMULT)) {
+ Param pm = (Param) paramtab->getnode(paramtab, "NUMERIC");
+ if (pm && pm->node.flags & PM_SPECIAL)
+ pm->node.flags &= ~PM_UNSET;
+ }
+ }
} else {
zwarnnam(name, "invalid flag `%s' given to zle -f", *flag);
ret = 1;
Messages sorted by:
Reverse Date,
Date,
Thread,
Author