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

Re: BUG? - 4.0.2, current 4.1 - blank left prompt & blank line erases right prompt



Zefram wrote:
>I think this patch fixes the problem.

Actually that was a little more conservative than necessary.  Here's a
better patch:

Index: zle_refresh.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_refresh.c,v
retrieving revision 1.4
diff -c -r1.4 zle_refresh.c
*** zle_refresh.c	2001/10/24 07:00:49	1.4
--- zle_refresh.c	2002/01/31 10:48:59
***************
*** 698,704 ****
        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 */
  	|| (ln == 0 && (put_rpmpt != oput_rpmpt))) {	/* prompt changed */
  	p1 = zhalloc(winw + 2);
  	if (nllen)
--- 698,704 ----
        which need to be written. do this now to allow some pre-processing */
  
      if (cleareol 		/* request to clear to end of line */
! 	|| (!nllen && (ln != 0 || !put_rpmpt))	/* no line buffer given */
  	|| (ln == 0 && (put_rpmpt != oput_rpmpt))) {	/* prompt changed */
  	p1 = zhalloc(winw + 2);
  	if (nllen)

-zefram



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