]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1831: stray vseps in right-most 'winfixwidth' window v9.1.1831
authorSean Dewar <6256228+seandewar@users.noreply.github.com>
Sun, 5 Oct 2025 17:00:58 +0000 (17:00 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 5 Oct 2025 17:00:58 +0000 (17:00 +0000)
commit620c6556778a0df15be4fa33647fff1f6ab36255
treea6702b253ffa8f7d36d3fa140850f4c661ad09f3
parent3b3cb04fa311b61e163a1d9556596455cba653a6
patch 9.1.1831: stray vseps in right-most 'winfixwidth' window

Problem:  vertical separator of 'winfixwidth' windows may remain if they
          become right-most windows from closing windows to the right.
Solution: Don't implicitly rely on frame_new_width to fix vseps, as the
          call may be skipped for 'winfixwidth' windows to preserve
          their width; do it explicitly in winframe_remove (Sean Dewar).

Note that I prefer win_new_width here over setting w_width directly, which
would've previously been done by win_split_ins after frame_add_vsep, as this
wasn't true for winframe_remove.

Though the equivalent issue of bottom 'winfixheight' windows leaving stray
statuslines with &ls=0 doesn't seem to exist, test it anyway.

closes: #18481

Signed-off-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/dumps/Test_winfixsize_vsep_statusline_1.dump [new file with mode: 0644]
src/testdir/dumps/Test_winfixsize_vsep_statusline_2.dump [new file with mode: 0644]
src/testdir/test_window_cmd.vim
src/version.c
src/window.c