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:
parent
88599a0508
commit
d904e85904
2 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue