aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-02-22 15:03:46 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2021-03-22 15:42:26 +0100
commit08ca5207cd284c8e5a1f1a47b98356415f4c1cf7 (patch)
tree0b668e509068b4a758a25265299b472dde64d517 /src/nvim/message.c
parent070e084a64dd08ff28c826843f0d61ca51837841 (diff)
downloadrneovim-08ca5207cd284c8e5a1f1a47b98356415f4c1cf7.tar.gz
rneovim-08ca5207cd284c8e5a1f1a47b98356415f4c1cf7.tar.bz2
rneovim-08ca5207cd284c8e5a1f1a47b98356415f4c1cf7.zip
w_grid_alloc: baseline impl
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r--src/nvim/message.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index ba7a667a60..71cb345878 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -178,6 +178,7 @@ void msg_grid_validate(void)
msg_grid.throttled = false; // don't throttle in 'cmdheight' area
msg_scrolled_at_flush = msg_scrolled;
msg_grid.focusable = false;
+ msg_grid_adj.target = &msg_grid;
if (!msg_scrolled) {
msg_grid_set_pos(Rows - p_ch, false);
}
@@ -188,6 +189,7 @@ void msg_grid_validate(void)
ui_call_grid_destroy(msg_grid.handle);
msg_grid.throttled = false;
msg_grid_adj.row_offset = 0;
+ msg_grid_adj.target = &default_grid;
redraw_cmdline = true;
} else if (msg_grid.chars && !msg_scrolled && msg_grid_pos != Rows - p_ch) {
msg_grid_set_pos(Rows - p_ch, false);