about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2013-06-17 16:37:44 +0200
committerMikael Magnusson <mikachu@gmail.com>2013-06-27 13:02:23 +0200
commitd904e85904cf60a2ea425d9ecf959f31fb31fa1c (patch)
tree37676d77bfde44292b58345c7dd335c9718cb8ea /Src
parent88599a0508d584c8e899dc74640b5d58d3ec03c6 (diff)
downloadzsh-d904e85904cf60a2ea425d9ecf959f31fb31fa1c.tar.gz
zsh-d904e85904cf60a2ea425d9ecf959f31fb31fa1c.tar.xz
zsh-d904e85904cf60a2ea425d9ecf959f31fb31fa1c.zip
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 }
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/zle_main.c2
1 files changed, 2 insertions, 0 deletions
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);