zsh-workers
 help / color / mirror / code / Atom feed
From: gwing@primenet.com.au
To: zsh-workers@math.gatech.edu
Cc: stucki@math.fu-berlin.de
Subject: Re: Bug in 3.0.2-test1 (no 'erase char' if zle off)
Date: Mon, 9 Dec 1996 23:57:05 +1100 (EST)	[thread overview]
Message-ID: <19961209125706.1358.qmail@primenet.com.au> (raw)
In-Reply-To: <19961209115418.1199.qmail@primenet.com.au> from "gwing@primenet.com.au" at Dec 9, 96 10:54:18 pm

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@primenet.com.au]   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


      reply	other threads:[~1996-12-09 14:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-09  8:49 C. v. Stuckrad
1996-12-09 11:54 ` gwing
1996-12-09 12:57   ` gwing [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19961209125706.1358.qmail@primenet.com.au \
    --to=gwing@primenet.com.au \
    --cc=stucki@math.fu-berlin.de \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).