mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 10:56:31 +00:00
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 vim/vim#12410,
closes vim/vim#12409)
0222c2d103
This commit is contained in:
@@ -248,7 +248,6 @@ void update_topline(win_T *wp)
|
||||
}
|
||||
|
||||
linenr_T old_topline = wp->w_topline;
|
||||
colnr_T old_skipcol = wp->w_skipcol;
|
||||
int old_topfill = wp->w_topfill;
|
||||
|
||||
// If the buffer is empty, always set topline to 1.
|
||||
@@ -413,8 +412,8 @@ void update_topline(win_T *wp)
|
||||
dollar_vcol = -1;
|
||||
redraw_later(wp, UPD_VALID);
|
||||
|
||||
// Only reset w_skipcol if it was not just set to make cursor visible.
|
||||
if (wp->w_skipcol == old_skipcol) {
|
||||
// When 'smoothscroll' is not set, should reset w_skipcol.
|
||||
if (!wp->w_p_sms) {
|
||||
reset_skipcol(wp);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user