comparison 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
comparison
equal deleted inserted replaced
28200:25015ad202cc 28201:bdd6df4832ba
1728 ) 1728 )
1729 { 1729 {
1730 if (mod_top != 0 1730 if (mod_top != 0
1731 && wp->w_topline == mod_top 1731 && wp->w_topline == mod_top
1732 && (!wp->w_lines[0].wl_valid 1732 && (!wp->w_lines[0].wl_valid
1733 || wp->w_topline <= wp->w_lines[0].wl_lnum)) 1733 || wp->w_topline == wp->w_lines[0].wl_lnum))
1734 { 1734 {
1735 // w_topline is the first changed line and window is not scrolled, 1735 // w_topline is the first changed line and window is not scrolled,
1736 // the scrolling from changed lines will be done further down. 1736 // the scrolling from changed lines will be done further down.
1737 } 1737 }
1738 else if (wp->w_lines[0].wl_valid 1738 else if (wp->w_lines[0].wl_valid