mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
multigrid: Change screen_* functions to grid_* functions
This commit is contained in:

committed by
Björn Linse

parent
c9b559a030
commit
f102f50ebe
@@ -3466,10 +3466,10 @@ static void display_showcmd(void)
|
||||
int len;
|
||||
|
||||
len = (int)STRLEN(showcmd_buf);
|
||||
if (len == 0)
|
||||
if (len == 0) {
|
||||
showcmd_is_clear = true;
|
||||
else {
|
||||
screen_puts(showcmd_buf, (int)Rows - 1, sc_col, 0);
|
||||
} else {
|
||||
grid_puts(&default_grid, showcmd_buf, (int)Rows - 1, sc_col, 0);
|
||||
showcmd_is_clear = false;
|
||||
}
|
||||
|
||||
@@ -3477,7 +3477,8 @@ static void display_showcmd(void)
|
||||
* clear the rest of an old message by outputting up to SHOWCMD_COLS
|
||||
* spaces
|
||||
*/
|
||||
screen_puts((char_u *)" " + len, (int)Rows - 1, sc_col + len, 0);
|
||||
grid_puts(&default_grid, (char_u *)" " + len, (int)Rows - 1,
|
||||
sc_col + len, 0);
|
||||
|
||||
setcursor(); /* put cursor back where it belongs */
|
||||
}
|
||||
|
Reference in New Issue
Block a user