mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 01:08:20 +00:00
terminal: handle size when switching buffers in window
This commit is contained in:
@@ -1452,7 +1452,8 @@ void scroll_cursor_bot(int min_scroll, int set_topbot)
|
||||
curwin->w_topline = loff.lnum) {
|
||||
loff.lnum = curwin->w_topline;
|
||||
topline_back(&loff);
|
||||
if (loff.height == MAXCOL || used + loff.height > curwin->w_height_inner) {
|
||||
if (loff.height == MAXCOL
|
||||
|| used + loff.height > curwin->w_height_inner) {
|
||||
break;
|
||||
}
|
||||
used += loff.height;
|
||||
|
Reference in New Issue
Block a user