diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-02-07 12:33:52 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-02-07 17:56:02 +0100 |
commit | 6e9ea5adcea9efc4e1423d6a7e88dbb8e5296331 (patch) | |
tree | 844ea02129cde5a9a796fc76e63ba124d57d791b /src/nvim/message.c | |
parent | fa2580f953204e919a13388ce5af2edf3afd0594 (diff) | |
download | rneovim-6e9ea5adcea9efc4e1423d6a7e88dbb8e5296331.tar.gz rneovim-6e9ea5adcea9efc4e1423d6a7e88dbb8e5296331.tar.bz2 rneovim-6e9ea5adcea9efc4e1423d6a7e88dbb8e5296331.zip |
screen: simplify scrolling code
Since the separation between internal screen and TUI, internal scroll
cannot FAIL. Delete the conditions for this.
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); |