From b51ba122c1edfb769e72c25c4f14f469f59f1b8e Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Tue, 2 Jul 2019 15:53:43 +0200 Subject: 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 --- src/nvim/normal.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/nvim/normal.c') diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 819ca83d27..e6a4c38c59 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -3455,16 +3455,18 @@ static void display_showcmd(void) return; } + msg_grid_validate(); int showcmd_row = Rows - 1; - grid_puts_line_start(&default_grid, showcmd_row); + grid_puts_line_start(&msg_grid_adj, showcmd_row); if (!showcmd_is_clear) { - grid_puts(&default_grid, showcmd_buf, showcmd_row, sc_col, 0); + grid_puts(&msg_grid_adj, showcmd_buf, showcmd_row, sc_col, + HL_ATTR(HLF_MSG)); } // clear the rest of an old message by outputting up to SHOWCMD_COLS spaces - grid_puts(&default_grid, (char_u *)" " + len, showcmd_row, - sc_col + len, 0); + grid_puts(&msg_grid_adj, (char_u *)" " + len, showcmd_row, + sc_col + len, HL_ATTR(HLF_MSG)); grid_puts_line_flush(false); } -- cgit