mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +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:
@@ -818,7 +818,7 @@ static bool pum_set_selected(int n, int repeat)
|
||||
// TODO(bfredl): can simplify, get rid of the flag munging?
|
||||
// or at least eliminate extra redraw before win_enter()?
|
||||
pum_is_visible = false;
|
||||
update_screen(0);
|
||||
update_screen();
|
||||
pum_is_visible = true;
|
||||
|
||||
if (!resized && win_valid(curwin_save)) {
|
||||
@@ -830,7 +830,7 @@ static bool pum_set_selected(int n, int repeat)
|
||||
// May need to update the screen again when there are
|
||||
// autocommands involved.
|
||||
pum_is_visible = false;
|
||||
update_screen(0);
|
||||
update_screen();
|
||||
pum_is_visible = true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user