diff options
author | Mikael Magnusson <mikachu@gmail.com> | 2013-06-17 16:37:44 +0200 |
---|---|---|
committer | Mikael Magnusson <mikachu@gmail.com> | 2013-06-27 13:02:23 +0200 |
commit | d904e85904cf60a2ea425d9ecf959f31fb31fa1c (patch) | |
tree | 37676d77bfde44292b58345c7dd335c9718cb8ea | |
parent | 88599a0508d584c8e899dc74640b5d58d3ec03c6 (diff) | |
download | zsh-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 }
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Zle/zle_main.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index b9d210269..0da9ee5a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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: 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); |