mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 23:18:33 +00:00
refactor(redraw): no type argument in update_screen()
This was used in the past with assumption that curwin/curbuf is "special" but this has not been true since basically forever at this point. Reduce NOT_VALID/CLEAR panic in options.lua . These should not be set if an effect of the option is causing something which by itself invokes redraw_later().
This commit is contained in:
@@ -1286,7 +1286,7 @@ void ins_redraw(bool ready)
|
||||
// a "(". The autocommand may also require a redraw, so it's done
|
||||
// again below, unfortunately.
|
||||
if (syntax_present(curwin) && must_redraw) {
|
||||
update_screen(0);
|
||||
update_screen();
|
||||
}
|
||||
// Make sure curswant is correct, an autocommand may call
|
||||
// getcurpos()
|
||||
@@ -1348,7 +1348,7 @@ void ins_redraw(bool ready)
|
||||
|
||||
pum_check_clear();
|
||||
if (must_redraw) {
|
||||
update_screen(0);
|
||||
update_screen();
|
||||
} else if (clear_cmdline || redraw_cmdline) {
|
||||
showmode(); // clear cmdline and show mode
|
||||
}
|
||||
|
Reference in New Issue
Block a user