Crash in a zero-width window with a status line above a vertical separator by h-east · Pull Request #21313 · vim/vim · GitHub
Skip to content

Crash in a zero-width window with a status line above a vertical separator - #21313

Closed
h-east wants to merge 1 commit into
vim:masterfrom
h-east:stl-vsep-borrow-zero-width
Closed

h-east wants to merge 1 commit into
vim:masterfrom
h-east:stl-vsep-borrow-zero-width

Conversation

@h-east

@h-east h-east commented Sep 15, 2026

Copy link
Copy Markdown
Member
Problem:  borrow_stl_vsep_hl() takes the status line highlight from the
    cell before the vertical separator, which a window of zero width does
    not have: the cell before the screen is read.  With the windows laid
    out for a size the GUI has not reached, the rows below the screen are
    read as well, which crashes gvim on MS-Windows in test_popup.vim
    since the tests redraw the shell after setting its size.
Solution: Skip a window of zero width and stay inside the screen.
    Test_statusline_vsep_borrow_zero_width_window() puts a zero by zero
    window next to another one with both status lines on the first
    screen line, which reads before the screen without the fix.

fixes: vim/vim-win32-installer#487
related: #20182

…rator

Problem:  borrow_stl_vsep_hl() takes the status line highlight from the
    cell before the vertical separator, which a window of zero width does
    not have: the cell before the screen is read.  With the windows laid
    out for a size the GUI has not reached, the rows below the screen are
    read as well, which crashes gvim on MS-Windows in test_popup.vim
    since the tests redraw the shell after setting its size.
Solution: Skip a window of zero width and stay inside the screen.
    Test_statusline_vsep_borrow_zero_width_window() puts a zero by zero
    window next to another one with both status lines on the first
    screen line, which reads before the screen without the fix.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@chrisbra

Copy link
Copy Markdown
Member

@chrisbra chrisbra closed this in 722c901 Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nightly build fails since 2026-09-10: gvim crashes in test_popup.vim

2 participants