summaryrefslogtreecommitdiffstats
path: root/lib/libncurses
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1998-01-01 23:27:10 +0000
committersteve <steve@FreeBSD.org>1998-01-01 23:27:10 +0000
commit8a719f4f6a5228ee1a499af703c7b6cdfa493c59 (patch)
tree1cb894cf51539e8cd77d3270d2c1c994abe6fc3d /lib/libncurses
parentc67ee699e530ef429207169a97ff9894434b7097 (diff)
downloadFreeBSD-src-8a719f4f6a5228ee1a499af703c7b6cdfa493c59.zip
FreeBSD-src-8a719f4f6a5228ee1a499af703c7b6cdfa493c59.tar.gz
Fix another problem with clearing the last line of the
display. Submitted by: Kouichi Hirabayashi <kh@mogami-wire.co.jp>
Diffstat (limited to 'lib/libncurses')
-rw-r--r--lib/libncurses/lib_insdel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libncurses/lib_insdel.c b/lib/libncurses/lib_insdel.c
index 73d7365..eb30f20 100644
--- a/lib/libncurses/lib_insdel.c
+++ b/lib/libncurses/lib_insdel.c
@@ -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 */
OpenPOWER on IntegriCloud