1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

39811: vi-repeat-change must not be the "motion" of vi-change, lest it infinitely repeat itself

This commit is contained in:
Barton E. Schaefer 2016-11-02 16:27:29 -07:00
parent 4bc0d13911
commit ae4c035cde
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2016-11-02 Barton E. Schaefer <schaefer@zsh.org>
* 39811: Src/Zle/zle_vi.c: vi-repeat-change must not be the
"motion" of vi-change, lest it infinitely repeat itself.
2016-11-01 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 39731: Completion/Unix/Command/_awk: add support for gawk

View file

@ -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) {