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

Re: Bug in 3.0.2-test1 (no 'erase char' if zle off)



I wrote:
:C. v. Stuckrad found some bugs.
:Hopefully a patch will follow soon.

Here it is.  It should be against 3.0.2-test1 (I think).  
One test I put in recently was a bit overeager.


*** zle_refresh.c.1	Mon Dec  9 23:20:27 1996
--- zle_refresh.c	Mon Dec  9 23:35:46 1996
***************
*** 58,64 ****
      pptw, rpw,                  /* prompt widths on screen                  */
      vcs, vln,			/* video cursor position column & line	    */
      vmaxln,			/* video maximum number of lines	    */
!     winw, winh,			/* window width & height		    */
      winpos;			/* singlelinezle: line's position in window */
  static unsigned pmpt_attr = 0,	/* text attributes after displaying prompt  */
      rpmpt_attr = 0;		/* text attributes after displaying rprompt */
--- 58,64 ----
      pptw, rpw,                  /* prompt widths on screen                  */
      vcs, vln,			/* video cursor position column & line	    */
      vmaxln,			/* video maximum number of lines	    */
!     winw, winh, rwinh,		/* window width & height		    */
      winpos;			/* singlelinezle: line's position in window */
  static unsigned pmpt_attr = 0,	/* text attributes after displaying prompt  */
      rpmpt_attr = 0;		/* text attributes after displaying rprompt */
***************
*** 76,81 ****
--- 76,82 ----
  	winh = 1;
      else
  	winh = (lines < 2) ? 24 : lines;
+     rwinh = lines;		/* keep the real number of lines */
      winpos = vln = vmaxln = 0;
      if (lwinw != winw || lwinh != winh) {
  	if (nbuf) {
***************
*** 275,281 ****
  	}
  	fflush(shout);
  	clearf = clearflag;
!     } else if (winw != columns || winh != lines)
  	resetvideo();
  
  /* now winw equals columns and winh equals lines 
--- 276,282 ----
  	}
  	fflush(shout);
  	clearf = clearflag;
!     } else if (winw != columns || rwinh != lines)
  	resetvideo();
  
  /* now winw equals columns and winh equals lines 

-- 
Geoff Wing [gwing@xxxxxxxxxxxxxxx]   Technical Manager
  Phone    : +61-3-9818 2977	     PrimeNet - Internet Consultancy
  Facsimile: +61-3-9819 3788	     Web : <URL:http://www.primenet.com.au/>
  Mobile   : 0412 162 441



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