]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0530: WinBar row vertical separator not refreshed on window change master v9.2.0530
authorHirohito Higashi <h.east.727@gmail.com>
Sun, 24 May 2026 17:43:32 +0000 (17:43 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 24 May 2026 17:43:32 +0000 (17:43 +0000)
commit24678d31c88c1b6e1a2880e8ee29a44c192cb3c3
tree85a6ee0bfe994007432220f4fc5a5ff3b01e100c
parent53d97c93b73252c02ed12b350532da8a2c19eb11
patch 9.2.0530: WinBar row vertical separator not refreshed on window change

Problem:  After the current window changes, the vertical separator cell
          on the WinBar row keeps its previous VertSplit / VertSplitNC
          highlight.  Content rows and status line rows of the same
          window are refreshed correctly; only the WinBar row is left
          behind, so the WinBar's separator no longer matches the
          surrounding cells (Mao-Yining)
Solution: Include the WinBar row in draw_vsep_win() when redrawing
          from the top of the window.  When called with row == 0 the
          loop now starts at wp->w_winrow (the WinBar row when present)
          instead of W_WINROW(wp) (the content start), so the separator
          highlight on the WinBar row is updated together with the rest
          of the window (Hirohito Higashi).

fixes:  #20304
closes: #20310

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/screen.c
src/testdir/dumps/Test_winbar_vsep_active.dump [new file with mode: 0644]
src/testdir/dumps/Test_winbar_vsep_inactive.dump [new file with mode: 0644]
src/testdir/test_winbar.vim
src/version.c