aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-09-01 20:25:36 +0200
committerGitHub <noreply@github.com>2019-09-01 20:25:36 +0200
commit9df3a676e7f2302929061a6c0edf42e5fb3f3873 (patch)
tree75b58a88ca69022a6e893e337c39e283d5577452 /src/nvim/ui.c
parent2f37c243482eec20fe52f298368c02eca21c758f (diff)
parent14615f7f67664cd63410999c2cd13ee50ed14571 (diff)
downloadrneovim-9df3a676e7f2302929061a6c0edf42e5fb3f3873.tar.gz
rneovim-9df3a676e7f2302929061a6c0edf42e5fb3f3873.tar.bz2
rneovim-9df3a676e7f2302929061a6c0edf42e5fb3f3873.zip
Merge pull request #10400 from bfredl/msg_grid
Dedicated message grid.
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index 5d191314ba..94fae0a774 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -333,6 +333,7 @@ void ui_set_ext_option(UI *ui, UIExtension ext, bool active)
void ui_line(ScreenGrid *grid, int row, int startcol, int endcol, int clearcol,
int clearattr, bool wrap)
{
+ assert(0 <= row && row < grid->Rows);
LineFlags flags = wrap ? kLineFlagWrap : 0;
if (startcol == -1) {
startcol = 0;
@@ -404,6 +405,7 @@ void ui_flush(void)
cmdline_ui_flush();
win_ui_flush_positions();
msg_ext_ui_flush();
+ msg_scroll_flush();
if (pending_cursor_update) {
ui_call_grid_cursor_goto(cursor_grid_handle, cursor_row, cursor_col);