Fix another problem with clearing the last line of the

display.

Submitted by:	Kouichi Hirabayashi <kh@mogami-wire.co.jp>
This commit is contained in:
Steve Price 1998-01-01 23:27:10 +00:00
parent 953757afd3
commit e2263d244f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32171

View File

@ -25,7 +25,7 @@ winsdelln(WINDOW *win, int n)
if (n == 0)
return OK;
if (n == -1 && win->_cury == win->_maxy)
if (win->_cury == win->_maxy && abs(n) == 1)
return wclrtoeol(win);
if (n < 0 && win->_cury - n > win->_maxy)
/* request to delete too many lines */