diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-07-02 15:53:43 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-09-01 15:55:10 +0200 |
commit | b51ba122c1edfb769e72c25c4f14f469f59f1b8e (patch) | |
tree | 84052cf27b2e1aa904b898cd01d9d35df9afaf92 /src/nvim/ui.c | |
parent | 9cec097ffacfd0de100912781df2efed1a4c8ba9 (diff) | |
download | rneovim-b51ba122c1edfb769e72c25c4f14f469f59f1b8e.tar.gz rneovim-b51ba122c1edfb769e72c25c4f14f469f59f1b8e.tar.bz2 rneovim-b51ba122c1edfb769e72c25c4f14f469f59f1b8e.zip |
screen: use dedicated message grid
add proper msg_set_pos event, delet win_scroll_over_*
make compositor click through unfocusable grids
add MsgArea attribute for the message/cmdline area, and add docs and tests
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r-- | src/nvim/ui.c | 2 |
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); |