zsh-workers
 help / color / mirror / code / Atom feed
* restoring the RPROMPT broken?
@ 2003-02-24 17:22 Wayne Davison
  2003-02-27  2:33 ` PATCH: for: " Geoff Wing
  0 siblings, 1 reply; 2+ messages in thread
From: Wayne Davison @ 2003-02-24 17:22 UTC (permalink / raw)
  To: zsh-workers

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
when there is room to redraw it (due to the shortening of the command).
In 4.0.6 it comes back without having to press return.

I don't think this was an intentional change, was it?  I don't see
anything about it in the ChangeLog file.

..wayne..


^ permalink raw reply	[flat|nested] 2+ messages in thread

* PATCH: for: restoring the RPROMPT broken?
  2003-02-24 17:22 restoring the RPROMPT broken? Wayne Davison
@ 2003-02-27  2:33 ` Geoff Wing
  0 siblings, 0 replies; 2+ messages in thread
From: Geoff Wing @ 2003-02-27  2:33 UTC (permalink / raw)
  To: zsh-workers

Wayne Davison <wayned@users.sourceforge.net> 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@pobox.com>
Rxvt Stuff : <gcw@rxvt.org>
Zsh Stuff  : <gcw@zsh.org>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-27  2:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-24 17:22 restoring the RPROMPT broken? Wayne Davison
2003-02-27  2:33 ` PATCH: for: " Geoff Wing

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).