From 6e9ea5adcea9efc4e1423d6a7e88dbb8e5296331 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Thu, 7 Feb 2019 12:33:52 +0100 Subject: screen: simplify scrolling code Since the separation between internal screen and TUI, internal scroll cannot FAIL. Delete the conditions for this. --- src/nvim/message.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/nvim/message.c') diff --git a/src/nvim/message.c b/src/nvim/message.c index 4552999256..b4f50c81a2 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -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); -- cgit