Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site umcp-cs.UUCP
Path: utzoo!linus!philabs!seismo!rlgvax!cvl!umcp-cs!chris
From: chris@umcp-cs.UUCP
Newsgroups: net.sources
Subject: Yet another windows bug
Message-ID: <869@umcp-cs.UUCP>
Date: Sat, 16-Jul-83 03:44:29 EDT
Article-I.D.: umcp-cs.869
Posted: Sat Jul 16 03:44:29 1983
Date-Received: Sat, 16-Jul-83 20:29:22 EDT
Organization: Univ. of Maryland, Computer Science Dept.
Lines: 53

It's a sad fact of life that any nontrivial code will, immediately
after distribution, suddenly prove to have innumerable bugs.  Right,
another windows fix.  It affects the position at which an insertion is
done in a particular case during the screen update.  It can only happen
to unframed windows.  Here's a diff listing for corrections to
display.c.

*** display.c.old	Sat Jul 16 03:11:56 1983
--- display.c	Sat Jul 16 03:25:19 1983
***************
*** 619,625
  		    INSmode (0);
  		    if (W_tt.t_needspaces)
  			dumpstring (np, nl - t);
! 		    else
  			dumps2 (Inp, nl - t, Iop, ln, np - Inp);
  		    if (t > 0)
  			topos (ln, nl - t - Inp + 1);

--- 619,625 -----
  		    INSmode (0);
  		    if (W_tt.t_needspaces)
  			dumpstring (np, nl - t);
! 		    else {
  			dumps2 (Inp, nl - t, Iop, ln, np - Inp);
  			if (t > 0)
  			    topos (ln, min (nsp, osp) + 1 + od);
***************
*** 621,628
  			dumpstring (np, nl - t);
  		    else
  			dumps2 (Inp, nl - t, Iop, ln, np - Inp);
! 		    if (t > 0)
! 			topos (ln, nl - t - Inp + 1);
  		}
  		if (t > 0)
  		    INSmode (1), dumpstring (nl - t + 1, nl);

--- 621,629 -----
  			dumpstring (np, nl - t);
  		    else {
  			dumps2 (Inp, nl - t, Iop, ln, np - Inp);
! 			if (t > 0)
! 			    topos (ln, min (nsp, osp) + 1 + od);
! 		    }
  		}
  		if (t > 0)
  		    INSmode (1), dumpstring (nl - t + 1, nl);
-- 
In-Real-Life:	Chris Torek, Univ of MD Comp Sci
UUCP:		{seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet:		chris@umcp-cs
ARPA:		chris.umcp-cs@UDel-Relay