mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 03:16:31 +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:
@@ -130,16 +130,6 @@ static void redraw_for_cursorcolumn(win_T *wp)
|
||||
}
|
||||
}
|
||||
|
||||
// Update curwin->w_topline and redraw if necessary.
|
||||
// Used to update the screen before printing a message.
|
||||
void update_topline_redraw(void)
|
||||
{
|
||||
update_topline(curwin);
|
||||
if (must_redraw) {
|
||||
update_screen(0);
|
||||
}
|
||||
}
|
||||
|
||||
// Update curwin->w_topline to move the cursor onto the screen.
|
||||
void update_topline(win_T *wp)
|
||||
{
|
||||
|
Reference in New Issue
Block a user