diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-03-25 15:42:27 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-25 15:42:27 +0000 |
commit | abb6fbd14d985b9b36a4e336d6edaf9853888ac1 (patch) | |
tree | c7726c6a64df4721be3e1fa7123462cca2f27561 /src/drawscreen.c | |
parent | 90da27b9277d74521202e5c146a09056696898ee (diff) |
patch 8.2.4626: Visual area not updated when removing sign in Visual modev8.2.4626
Problem: Visual area not fully updated when removing sign in Visual mode
while scrolling.
Solution: Adjust check for topline. (closes #10017)
Diffstat (limited to 'src/drawscreen.c')
-rw-r--r-- | src/drawscreen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drawscreen.c b/src/drawscreen.c index a902397cd7..12eed8c476 100644 --- 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. |