Yet another windows bug
chris at umcp-cs.UUCP
chris at umcp-cs.UUCP
Sat Jul 16 17:44:29 AEST 1983
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 at umcp-cs
ARPA: chris.umcp-cs at UDel-Relay
More information about the Comp.sources.unix
mailing list