mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
Handle the condition where BS is typed while the cursor is
at the first position on either of the last two lines of the screen. Ie. append contents of current line to the previous line and scroll the next line's contents up. PR: 5392 Submitted by: Kouichi Hirabayashi <kh@mogami-wire.co.jp>
This commit is contained in:
parent
60f8d46448
commit
b497d31373
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32073
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user