mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 11:18:19 +00:00
api/ui: win_viewport event for visible range and cursor position in window
This commit is contained in:
@@ -417,7 +417,7 @@ int update_screen(int type)
|
||||
need_wait_return = false;
|
||||
}
|
||||
|
||||
win_ui_flush_positions();
|
||||
win_ui_flush();
|
||||
msg_ext_check_clear();
|
||||
|
||||
/* reset cmdline_row now (may have been changed temporarily) */
|
||||
@@ -1629,6 +1629,7 @@ static void win_update(win_T *wp)
|
||||
* changes are relevant).
|
||||
*/
|
||||
wp->w_valid |= VALID_BOTLINE;
|
||||
wp->w_viewport_invalid = true;
|
||||
if (wp == curwin && wp->w_botline != old_botline && !recursive) {
|
||||
recursive = TRUE;
|
||||
curwin->w_valid &= ~VALID_TOPLINE;
|
||||
@@ -1648,7 +1649,7 @@ static void win_update(win_T *wp)
|
||||
/* restore got_int, unless CTRL-C was hit while redrawing */
|
||||
if (!got_int)
|
||||
got_int = save_got_int;
|
||||
}
|
||||
} // NOLINT(readability/fn_size)
|
||||
|
||||
/// Returns width of the signcolumn that should be used for the whole window
|
||||
///
|
||||
|
Reference in New Issue
Block a user