Patch 8.1.1456
Problem: WinBar not redrawn after scrolling one line.
Solution: Exclude the winbar height when deciding what to redraw.
(closes #4473)
Files: src/screen.c, src/testdir/test_winbar.vim
*** ../vim-8.1.1455/src/screen.c 2019-06-02 18:40:02.637508840 +0200
--- src/screen.c 2019-06-02 20:32:45.787110205 +0200
***************
*** 645,651 ****
type = CLEAR;
FOR_ALL_WINDOWS(wp)
{
! if (W_WINROW(wp) < msg_scrolled)
{
if (W_WINROW(wp) + wp->w_height > msg_scrolled
&& wp->w_redr_type < REDRAW_TOP
--- 645,651 ----
type = CLEAR;
FOR_ALL_WINDOWS(wp)
{
! if (wp->w_winrow < msg_scrolled)
{
if (W_WINROW(wp) + wp->w_height > msg_scrolled
&& wp->w_redr_type < REDRAW_TOP
*** ../vim-8.1.1455/src/testdir/test_winbar.vim 2019-05-05 13:14:24.815627694
+0200
--- src/testdir/test_winbar.vim 2019-06-02 20:32:22.419297877 +0200
***************
*** 110,112 ****
--- 110,124 ----
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
+
*** ../vim-8.1.1455/src/version.c 2019-06-02 19:53:40.998714309 +0200
--- src/version.c 2019-06-02 20:29:53.884526016 +0200
***************
*** 769,770 ****
--- 769,772 ----
{ /* Add new patch number below this line */
+ /**/
+ 1456,
/**/
--
>From "know your smileys":
:-H Is missing teeth
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/201906021833.x52IXlOX028658%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.