mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +00:00
screen: simplify scrolling code
Since the separation between internal screen and TUI, internal scroll cannot FAIL. Delete the conditions for this.
This commit is contained in:
@@ -2392,9 +2392,8 @@ static int do_more_prompt(int typed_char)
|
||||
mp_last = msg_sb_start(mp_last->sb_prev);
|
||||
}
|
||||
|
||||
if (toscroll == -1
|
||||
&& grid_ins_lines(&default_grid, 0, 1, (int)Rows,
|
||||
0, (int)Columns) == OK) {
|
||||
if (toscroll == -1) {
|
||||
grid_ins_lines(&default_grid, 0, 1, (int)Rows, 0, (int)Columns);
|
||||
grid_fill(&default_grid, 0, 1, 0, (int)Columns, ' ', ' ', 0);
|
||||
// display line at top
|
||||
(void)disp_sb_line(0, mp);
|
||||
|
Reference in New Issue
Block a user