summary refs log tree commit diff
diff options
context:
space:
mode:
authorGeoff Wing <gcw@users.sourceforge.net>2002-02-19 00:06:54 +0000
committerGeoff Wing <gcw@users.sourceforge.net>2002-02-19 00:06:54 +0000
commit71749e822abcf5e768e0affa5a08531912940159 (patch)
tree6f1ae37b5db94f513d8f3de9a5b304b251bd0b62
parentd8ed8e965973b80517f1441a0bb8884deee84fad (diff)
downloadzsh-71749e822abcf5e768e0affa5a08531912940159.tar.gz
zsh-71749e822abcf5e768e0affa5a08531912940159.tar.xz
zsh-71749e822abcf5e768e0affa5a08531912940159.zip
16635: make sure we display lists in singlelinezle mode
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/zle_refresh.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e5113d174..f7f047eb5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-19  Geoff Wing  <gcw@zsh.org>
+
+	* 16635: Src/Zle/zle_refresh.c: make sure we display lists in
+	singlelinezle mode
+
 2002-02-18  Wayne Davison  <wayned@users.sourceforge.net>
 
 	* 16672: Src/hist.c: Fixed a just-introduced bug in prepnexthistent()
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index 0029b088c..17c373732 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -393,7 +393,7 @@ zrefresh(void)
 
     if (termflags & TERM_SHORT) {
 	singlerefresh();
-	return;
+	goto singlelineout;
     }
 
     if (cs < 0) {
@@ -643,6 +643,7 @@ individually */
     onumscrolls = numscrolls;
     if (nlnct > vmaxln)
 	vmaxln = nlnct;
+singlelineout:
     fflush(shout);		/* make sure everything is written out */
 
     /* if we have a new list showing, note it; if part of the list has been
@@ -1183,7 +1184,6 @@ singlerefresh(void)
     qbuf = nbuf;
     nbuf = obuf;
     obuf = qbuf;
-    fflush(shout);		/* make sure everything is written out */
 }
 
 /**/