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

Re: [BUG]: zle-line-pre-redraw breaks vi-repeat-change



> On 07 October 2020 at 13:49 Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx> wrote:
> 
> 
> If zle-line-pre-redraw is defined, vi-repeat-change behaves as if the
> numeric argument was always 1.

I wonder if we need to change zlecallhook().

pws

diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 8c0534708..1622d8a6b 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -1067,6 +1067,7 @@ redrawhook(void)
 	int old_incompfunc = incompfunc;
 	char *args[2];
 	Thingy lbindk_save = lbindk, bindk_save = bindk;
+	struct modifier zmod_save = zmod;
 
 	refthingy(lbindk_save);
 	refthingy(bindk_save);
@@ -1094,6 +1095,7 @@ redrawhook(void)
 	 * restore lastcmd manually so that we don't mess up the global state
 	 */
 	lastcmd = lastcmd_prev;
+	zmod = zmod_save;
     }
 }




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