mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 03:16:31 +00:00
fix(api): nvim_win_set_cursor redraw cursorcolumn for non-current window (#21072)
fix #19063 this fixes the cursorcolumn not being redrawn for non-current windows in `nvim_win_set_cursor()`
This commit is contained in:
@@ -341,15 +341,6 @@ void update_topline(win_T *wp)
|
||||
*so_ptr = save_so;
|
||||
}
|
||||
|
||||
// Update win->w_topline to move the cursor onto the screen.
|
||||
void update_topline_win(win_T *win)
|
||||
{
|
||||
switchwin_T switchwin;
|
||||
switch_win(&switchwin, win, NULL, true);
|
||||
update_topline(curwin);
|
||||
restore_win(&switchwin, true);
|
||||
}
|
||||
|
||||
// Return the scrolljump value to use for the current window.
|
||||
// When 'scrolljump' is positive use it as-is.
|
||||
// When 'scrolljump' is negative use it as a percentage of the window height.
|
||||
|
Reference in New Issue
Block a user