0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.4626: Visual area not updated when removing sign in Visual mode

Problem:    Visual area not fully updated when removing sign in Visual mode
            while scrolling.
Solution:   Adjust check for topline. (closes #10017)
This commit is contained in:
Bram Moolenaar
2022-03-25 15:42:27 +00:00
parent 90da27b927
commit abb6fbd14d
4 changed files with 32 additions and 1 deletions

View File

@@ -1730,7 +1730,7 @@ win_update(win_T *wp)
if (mod_top != 0
&& wp->w_topline == mod_top
&& (!wp->w_lines[0].wl_valid
|| wp->w_topline <= wp->w_lines[0].wl_lnum))
|| wp->w_topline == wp->w_lines[0].wl_lnum))
{
// w_topline is the first changed line and window is not scrolled,
// the scrolling from changed lines will be done further down.