summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-07-13 09:41:36 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-07-13 09:41:36 +0000
commit0cfb07ee92ce00b01b430a09400c7740954115a4 (patch)
tree1a8ef4bf81e6c6948f559a57ef5874f780847892
parentbedf58cfceeac17fea0963c9af7aa7f0c0c537e3 (diff)
downloadzsh-0cfb07ee92ce00b01b430a09400c7740954115a4.tar.gz
zsh-0cfb07ee92ce00b01b430a09400c7740954115a4.tar.xz
zsh-0cfb07ee92ce00b01b430a09400c7740954115a4.zip
20153: make zle-line-init run after the first zrefresh()
-rw-r--r--ChangeLog6
-rw-r--r--Src/Zle/zle_main.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5e1a995ab..c9ec571ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-07-13  Peter Stephenson  <pws@csr.com>
+
+	* 20153: Src/Zle/zle_main.c: make zle-line-init run after
+	the initial zrefresh() by moving the latter out of zlecore().
+	Needs an extra call in recursiveedit().
+
 2004-07-12  Peter Stephenson  <pws@csr.com>
 
 	* unposted: NEWS: read it through and tidied it up.
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 765f4dfbe..97d5432be 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -680,8 +680,6 @@ zlecore(void)
     FD_ZERO(&foofd);
 #endif
 
-    zrefresh();
-
     while (!done && !errflag) {
 
 	statusline = NULL;
@@ -834,6 +832,8 @@ zleread(char **lp, char **rp, int flags, int context)
     initmodifier(&zmod);
     prefixflag = 0;
 
+    zrefresh();
+
     if ((initthingy = rthingy_nocreate("zle-line-init"))) {
 	char *args[2];
 	args[0] = initthingy->nam;
@@ -1303,6 +1303,7 @@ recursiveedit(UNUSED(char **args))
 {
     int locerror;
 
+    zrefresh();
     zlecore();
 
     locerror = errflag;