0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 8.1.1456: WinBar not redrawn after scrolling one line

Problem:    WinBar not redrawn after scrolling one line.
Solution:   Exclude the winbar height when deciding what to redraw.
            (closes #4473)
This commit is contained in:
Bram Moolenaar
2019-06-02 20:33:32 +02:00
parent 1762731f20
commit 98fb65cb05
3 changed files with 15 additions and 1 deletions

View File

@@ -645,7 +645,7 @@ update_screen(int type_arg)
type = CLEAR;
FOR_ALL_WINDOWS(wp)
{
if (W_WINROW(wp) < msg_scrolled)
if (wp->w_winrow < msg_scrolled)
{
if (W_WINROW(wp) + wp->w_height > msg_scrolled
&& wp->w_redr_type < REDRAW_TOP

View File

@@ -110,3 +110,15 @@ func Test_click_in_other_winbar()
bwipe!
endfunc
func Test_redraw_after_scroll()
new
amenu 1.10 WinBar.Next :let g:did_next = 11<CR>
redraw
call assert_equal(" Next", Screenline(1))
echo "some\nmore"
redraw
call assert_equal(" Next", Screenline(1))
bwipe!
endfunc

View File

@@ -767,6 +767,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1456,
/**/
1455,
/**/