mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-07 11:41:16 +02:00
47744: Fix vi repeats with hooks in use.
This commit is contained in:
parent
e15dce8ced
commit
5d14b6eb71
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2021-01-27 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* GammaFunction@vivaldi.net via Roman: 47744:
|
||||
Src/Zle/zle_main.c: Fix vi-repeat-change when hooks are in use.
|
||||
|
||||
2021-01-26 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* unposted: Etc/FAQ.yo: Fix a typo in the front matter.
|
||||
|
|
|
@ -1065,6 +1065,7 @@ redrawhook(void)
|
|||
int saverrflag = errflag, savretflag = retflag;
|
||||
int lastcmd_prev = lastcmd;
|
||||
int old_incompfunc = incompfunc;
|
||||
int old_viinrepeat = viinrepeat;
|
||||
char *args[2];
|
||||
Thingy lbindk_save = lbindk, bindk_save = bindk;
|
||||
|
||||
|
@ -1079,6 +1080,7 @@ redrawhook(void)
|
|||
incompfunc = 0;
|
||||
execzlefunc(initthingy, args, 1, 0);
|
||||
incompfunc = old_incompfunc;
|
||||
viinrepeat = old_viinrepeat;
|
||||
|
||||
/* Restore errflag and retflag as zlecallhook() does */
|
||||
errflag = saverrflag | (errflag & ERRFLAG_INT);
|
||||
|
|
Loading…
Reference in a new issue