Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: for: restoring the RPROMPT broken?



Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx> typed:
: I've noticed that in 4.1.0-dev-6 that when the RPROMPT vanishes (due
: to the typing of a long command), it does not pop back into existence
[...] 
: I don't think this was an intentional change, was it?  I don't see
: anything about it in the ChangeLog file.

Whoops, I did that.  And it's only been broken since October 2001!

Index: Src/Zle/zle_refresh.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_refresh.c,v
retrieving revision 1.7
diff -u -r1.7 zle_refresh.c
--- Src/Zle/zle_refresh.c	1 Jul 2002 16:50:43 -0000	1.7
+++ Src/Zle/zle_refresh.c	27 Feb 2003 02:25:39 -0000
@@ -614,7 +614,6 @@
 
     /* 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 @@
 	}
     }
     clearf = 0;
+    oput_rpmpt = put_rpmpt;
 
 /* move to the new cursor position */
     moveto(nvln, nvcs);
 

Regards,
-- 
Geoff Wing : <gcw@xxxxxxxxx>
Rxvt Stuff : <gcw@xxxxxxxx>
Zsh Stuff  : <gcw@xxxxxxx>



Messages sorted by: Reverse Date, Date, Thread, Author