From kh@mogami-wire.co.jp Sun Dec 28 18:07:48 1997 Received: from eve.mogami-wire.co.jp (eve.mogami-wire.co.jp [210.161.93.162]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA24334 for ; Sun, 28 Dec 1997 18:07:46 -0800 (PST) (envelope-from kh@mogami-wire.co.jp) Received: (from uucp@localhost) by eve.mogami-wire.co.jp (8.7.6+2.6Wbeta7/3.4Wbeta5-eve) with UUCP id LAA29468 for FreeBSD-gnats-submit@freebsd.org; Mon, 29 Dec 1997 11:07:39 +0900 (JST) Received: (from kh@localhost) by poem.mogami-wire.co.jp (8.8.5/3.5Wpl3-uucp) id LAA00760; Mon, 29 Dec 1997 11:05:56 +0900 (JST) Message-Id: <199712290205.LAA00760@poem.mogami-wire.co.jp> Date: Mon, 29 Dec 1997 11:05:56 +0900 (JST) From: Kouichi Hirabayashi Reply-To: kh@mogami-wire.co.jp To: FreeBSD-gnats-submit@freebsd.org Subject: Buf fix for libncures library X-Send-Pr-Version: 3.2 >Number: 5392 >Category: bin >Synopsis: fixing libncurses and /bin/ee problem >Confidential: no >Severity: serious >Priority: medium >Responsible: steve >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 28 18:10:01 PST 1997 >Closed-Date: Sun Dec 28 20:05:12 PST 1997 >Last-Modified: Sun Dec 28 20:07:55 PST 1997 >Originator: Kouichi Hirabayashi >Release: FreeBSD 2.2.1-RELEASE i386 >Organization: Mogami Wire & Cable Corp. >Environment: FreeBSD 2.2.5 has still same problem. >Description: The ee editor makes wrong display at some special conditions. >How-To-Repeat: 1) When the last line of file is oni either last two line of screen, 2) the BS (^h) command at the first character on either last two line of screen makes unreasonable display. >Fix: *** /usr/src/lib/libncurses/ORGlib_insdel.c Tue May 30 14:46:20 1995 --- /usr/src/lib/libncurses/lib_insdel.c Sun Dec 28 18:18:00 1997 *************** *** 25,31 **** if (n == 0) return OK; ! if (n < 0 && win->_cury - n >= win->_maxy) /* request to delete too many lines */ /* should we truncate to an appropriate number? */ return ERR; --- 25,33 ---- if (n == 0) return OK; ! if (n == -1 && win->_cury == win->_maxy) ! return wclrtoeol(win); ! if (n < 0 && win->_cury - n > win->_maxy) /* request to delete too many lines */ /* should we truncate to an appropriate number? */ return ERR; ----< cut >--- >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: steve State-Changed-When: Sun Dec 28 20:05:12 PST 1997 State-Changed-Why: Suggested patch applied in -current. Thanks! After this has shaken itself out there for a week or two I will merge this into the -stable branch as well. >Unformatted: