about summary refs log tree commit diff
diff options
context:
space:
mode:
-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)