aboutsummaryrefslogtreecommitdiff
path: root/lib/libncurses/lib_insdel.c
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1998-01-01 23:27:10 +0000
committerSteve Price <steve@FreeBSD.org>1998-01-01 23:27:10 +0000
commite2263d244facbc211941607b2da85f608677f349 (patch)
treedd1c43eb00a582caff4b6a7aa838dfcfec257837 /lib/libncurses/lib_insdel.c
parent953757afd3ddb11ccf7c4a498a5f684e295c7ec1 (diff)
downloadsrc-e2263d244facbc211941607b2da85f608677f349.tar.gz
src-e2263d244facbc211941607b2da85f608677f349.zip
Fix another problem with clearing the last line of the
display. Submitted by: Kouichi Hirabayashi <kh@mogami-wire.co.jp>
Notes
Notes: svn path=/head/; revision=32171
Diffstat (limited to 'lib/libncurses/lib_insdel.c')
-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 73d736506c4a..eb30f20a00ea 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 */