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

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 }
This commit is contained in:
Mikael Magnusson 2013-06-17 16:37:44 +02:00
parent 88599a0508
commit d904e85904
2 changed files with 7 additions and 0 deletions

View file

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