mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
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:
parent
953757afd3
commit
e2263d244f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32171
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user