about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorFrank Terbeck <ft@bewatermyfriend.org>2013-03-23 15:46:37 +0100
committerFrank Terbeck <ft@bewatermyfriend.org>2013-04-05 17:23:45 +0200
commit6654b87b450ee317fb73ec9a875cb8c29f8a0e83 (patch)
tree9cfbf9063813894663316f3d99eec04b2decd4fc /Src
parent0c32aa6274a25e60f56f2d189f6aaded015a2303 (diff)
downloadzsh-6654b87b450ee317fb73ec9a875cb8c29f8a0e83.tar.gz
zsh-6654b87b450ee317fb73ec9a875cb8c29f8a0e83.tar.xz
zsh-6654b87b450ee317fb73ec9a875cb8c29f8a0e83.zip
31174: zle: Make sure state changes are refreshed after init hook
If `zrefresh' is not called _after_ the zle-line-init hook, any changes
made to the editor's state (be it changes to $CURSOR or $BUFFER or
called widgets like `clear-screen') will only be picked up after the
first character is typed into the editor.
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/zle_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index e1a575bdb..5157ad3da 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -1219,12 +1219,12 @@ zleread(char **lp, char **rp, int flags, int context)
     initmodifier(&zmod);
     prefixflag = 0;
 
-    zrefresh();
-
     unqueue_signals();	/* Should now be safe to acknowledge SIGWINCH */
 
     zlecallhook("zle-line-init", NULL);
 
+    zrefresh();
+
     zlecore();
 
     if (errflag)