refactor(redraw): make cursor position redraw use the "redraw later" pattern

This commit is contained in:
bfredl
2023-03-09 11:45:20 +01:00
parent d15abd1be4
commit 846a056744
9 changed files with 31 additions and 42 deletions

View File

@@ -1350,12 +1350,15 @@ void ins_redraw(bool ready)
}
pum_check_clear();
show_cursor_info_later(false);
if (must_redraw) {
update_screen();
} else if (clear_cmdline || redraw_cmdline) {
showmode(); // clear cmdline and show mode
} else {
redraw_statuslines();
if (clear_cmdline || redraw_cmdline || redraw_mode) {
showmode(); // clear cmdline and show mode
}
}
show_cursor_info(false);
setcursor();
emsg_on_display = false; // may remove error message now
}