1
0
forked from aniani/vim

patch 9.0.1564: display moves up and down with 'incsearch' and 'smoothscroll'

Problem:    Display moves up and down with 'incsearch' and 'smoothscroll'.
Solution:   Do not check if w_skipcol changed. (Luuk van Baal, closes #12410,
            closes #12409)
This commit is contained in:
Luuk van Baal
2023-05-18 13:26:57 +01:00
committed by Bram Moolenaar
parent c0da540466
commit 0222c2d103
4 changed files with 9 additions and 8 deletions

View File

@@ -312,7 +312,6 @@ update_topline(void)
*so_ptr = mouse_dragging - 1;
linenr_T old_topline = curwin->w_topline;
colnr_T old_skipcol = curwin->w_skipcol;
#ifdef FEAT_DIFF
int old_topfill = curwin->w_topfill;
#endif
@@ -517,8 +516,8 @@ update_topline(void)
dollar_vcol = -1;
redraw_later(UPD_VALID);
// Only reset w_skipcol if it was not just set to make cursor visible.
if (curwin->w_skipcol == old_skipcol)
// When 'smoothscroll' is not set, should reset w_skipcol.
if (!curwin->w_p_sms)
reset_skipcol();
// May need to set w_skipcol when cursor in w_topline.