diff options
| author | Steve Price <steve@FreeBSD.org> | 1997-12-29 03:29:29 +0000 |
|---|---|---|
| committer | Steve Price <steve@FreeBSD.org> | 1997-12-29 03:29:29 +0000 |
| commit | b497d313738ee08e75dad88a1d5342bfce0868b3 (patch) | |
| tree | e09407895c163d88ccac96c14a46fc03ab57b843 /lib | |
| parent | 60f8d46448d17922a5d8bf5a65bbff21cf0576af (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libncurses/lib_insdel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libncurses/lib_insdel.c b/lib/libncurses/lib_insdel.c index aca7cc39dfd2..73d736506c4a 100644 --- a/lib/libncurses/lib_insdel.c +++ b/lib/libncurses/lib_insdel.c @@ -25,7 +25,9 @@ winsdelln(WINDOW *win, int n) if (n == 0) return OK; - if (n < 0 && win->_cury - n >= win->_maxy) + 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; |
