diff options
author | Andrew Main <zefram@users.sourceforge.net> | 2002-01-31 10:51:05 +0000 |
---|---|---|
committer | Andrew Main <zefram@users.sourceforge.net> | 2002-01-31 10:51:05 +0000 |
commit | b1dadd97d34d5e7b4cde3626887bf3f0099ef4ce (patch) | |
tree | 6c29ef813afd330a8b94aeead2591dcb65d0c4a0 /Src/Zle | |
parent | 908065190d40d76c67e2f24cc368249cfe0cd901 (diff) | |
download | zsh-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.
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/zle_refresh.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |