1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-20 06:56:05 +02: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

@ -1,3 +1,8 @@
2013-06-27 Mikael Magnusson <mikachu@gmail.com>
* 31483: Call zrefresh() before unqueue()ing signals, was
moved in 31174.
2013-06-18 Frank Terbeck <ft@bewatermyfriend.org>
* 31485: Functions/VCS_Info/Backends/VCS_INFO_get_data_git:

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