From d904e85904cf60a2ea425d9ecf959f31fb31fa1c Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Mon, 17 Jun 2013 16:37:44 +0200 Subject: 31483: Call zrefresh() before unqueue()ing signals Not doing so causes problems for example with this .zshrc zle -N zle-line-init foo zle -N set-local-history bar foo() { zle set-local-history -n 1 } bar() { zle reset-prompt } --- Src/Zle/zle_main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src') diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c index 569ad5f5a..a1d54dd2b 100644 --- a/Src/Zle/zle_main.c +++ b/Src/Zle/zle_main.c @@ -1229,6 +1229,8 @@ zleread(char **lp, char **rp, int flags, int context, char *init, char *finish) initmodifier(&zmod); prefixflag = 0; + zrefresh(); + unqueue_signals(); /* Should now be safe to acknowledge SIGWINCH */ zlecallhook(init, NULL); -- cgit 1.4.1