summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorGeoff Wing <gcw@users.sourceforge.net>2003-02-27 02:37:29 +0000
committerGeoff Wing <gcw@users.sourceforge.net>2003-02-27 02:37:29 +0000
commit8e50782a72c64fd57bbd7a75dcb808bd84841251 (patch)
tree094a6bd8f5c699ae7827cf79ff510c81933164c8 /Src
parent417223a3cce7309af4c67ccd61944900a98cb8eb (diff)
downloadzsh-8e50782a72c64fd57bbd7a75dcb808bd84841251.tar.gz
zsh-8e50782a72c64fd57bbd7a75dcb808bd84841251.tar.xz
zsh-8e50782a72c64fd57bbd7a75dcb808bd84841251.zip
18306: fix redisplay of rprompt when line shortens
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/zle_refresh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index 2223a35f4..c33c26119 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -614,7 +614,6 @@ zrefresh(void)
 
     /* output the right-prompt if appropriate */
 	if (put_rpmpt && !ln && !oput_rpmpt) {
-	    oput_rpmpt = put_rpmpt;
 	    moveto(0, winw - 1 - rpromptw);
 	    zputs(rpromptbuf, shout);
 	    vcs = winw - 1;
@@ -662,6 +661,7 @@ individually */
 	}
     }
     clearf = 0;
+    oput_rpmpt = put_rpmpt;
 
 /* move to the new cursor position */
     moveto(nvln, nvcs);