about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Main <zefram@users.sourceforge.net>2002-01-31 10:51:05 +0000
committerAndrew Main <zefram@users.sourceforge.net>2002-01-31 10:51:05 +0000
commitb1dadd97d34d5e7b4cde3626887bf3f0099ef4ce (patch)
tree6c29ef813afd330a8b94aeead2591dcb65d0c4a0
parent908065190d40d76c67e2f24cc368249cfe0cd901 (diff)
downloadzsh-b1dadd97d34d5e7b4cde3626887bf3f0099ef4ce.tar.gz
zsh-b1dadd97d34d5e7b4cde3626887bf3f0099ef4ce.tar.xz
zsh-b1dadd97d34d5e7b4cde3626887bf3f0099ef4ce.zip
* 16527: Src/Zle/zle_refresh.c: Don't lose the rprompt when
clearing an otherwise-blank line.
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/zle_refresh.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f88b6cda8..b0d053427 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-31  Andrew Main (Zefram)  <zefram@zsh.org>
+
+	* 16527: Src/Zle/zle_refresh.c: Don't lose the rprompt when
+	clearing an otherwise-blank line.
+
 2002-01-30  Sven Wischnowsky  <wischnow@zsh.org>
 
 	* 16515: Completion/Zsh/Command/_cd: fixlet to avoid an empty
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index 7b4178ee8..0029b088c 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -698,7 +698,7 @@ refreshline(int ln)
       which need to be written. do this now to allow some pre-processing */
 
     if (cleareol 		/* request to clear to end of line */
-	|| !nllen 		/* no line buffer given */
+	|| (!nllen && (ln != 0 || !put_rpmpt))	/* no line buffer given */
 	|| (ln == 0 && (put_rpmpt != oput_rpmpt))) {	/* prompt changed */
 	p1 = zhalloc(winw + 2);
 	if (nllen)