Mercurial > vim
diff src/drawscreen.c @ 28201:bdd6df4832ba v8.2.4626
patch 8.2.4626: Visual area not updated when removing sign in Visual mode
Commit: https://github.com/vim/vim/commit/abb6fbd14d985b9b36a4e336d6edaf9853888ac1
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 25 15:42:27 2022 +0000
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 25 Mar 2022 16:45:03 +0100 |
parents | f04a3ec65e2d |
children | c99005ffa8c3 |
line wrap: on
line diff
--- a/src/drawscreen.c +++ b/src/drawscreen.c @@ -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.