Subject: dt1.1.2 bug fix
To: None <port-mac68k@NetBSD.ORG>
From: Francois Pays <francois@pluton.sema-itf.fr>
List: port-mac68k
Date: 10/02/1995 15:16:55
I will not confuse owner-port-mac68k with port-mac68k never again.
I will not confuse owner-port-mac68k with port-mac68k never again.
I will not confuse owner-port-mac68k with port-mac68k never again.
I will not confuse owner-port-mac68k with port-mac68k never again.
....
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I really don't know if that may interest sombody but
I found a little bug in the VT emulation in dt-1.1.2.
When I edit a file with vi and and try to insert a line
in the 7 top lines of the document, then the lines below
the new line fail to scroll down.

I think I have found what's wrong. I propose a patch,
but I don't know whether or not there are any side effects.
(I didn't find any).

Patch for dt-1.1.2:
File: vt.c
Lines 1071-1073 :
------------------------------------------
 if (v->y < v->toptrow) {
			v->y=v->toptrow;
}
------------------------------------------
must be replaced by:
------------------------------------------
 if (v->y < 0) {
	        v->y=0;
}            
------------------------------------------
Then, make vt.o ; make dt.


--Francois Pays

[Old programmers never die.  They just branch to a new address.]