zsh-workers
 help / color / mirror / code / Atom feed
* bug fix: synchronise prompts
@ 1996-12-08  5:09 gwing
  0 siblings, 0 replies; only message in thread
From: gwing @ 1996-12-08  5:09 UTC (permalink / raw)
  To: zsh-workers

Heyla,
 Bug fix: regenerate prompts more often - necessary when term size changes.
Previously if you set the terminal width less than pptw (prompt width on
line) there would be a multitude of illegal read and writes.
Now the prompt stuff is synchronous with the text buffers.


*** zle_refresh.c.org	Sun Dec  8 15:48:59 1996
--- zle_refresh.c	Sun Dec  8 16:00:43 1996
***************
*** 70,75 ****
--- 70,76 ----
      int ln;
      static int lwinw = -1, lwinh = -1;	/* last window width & height */
   
+     genprompts();
      winw = columns;  /* terminal width */
      if (isset(SINGLELINEZLE) || termok != TERM_OK)
  	winh = 1;

*** zle_main.c.org	Sun Dec  8 15:48:49 1996
--- zle_main.c	Sun Dec  8 15:59:12 1996
***************
*** 419,425 ****
  	    putc('\r', shout);
  	if (tmout)
  	    alarm(tmout);
- 	genprompts();
  	zleactive = 1;
  	resetneeded = 1;
  	refresh();
--- 419,424 ----

-- 
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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-12-08  5:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-12-08  5:09 bug fix: synchronise prompts gwing

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).