diff options
| author | benarcher2691 <ben.archer2691@gmail.com> | 2025-12-02 05:57:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-01 23:57:56 -0500 |
| commit | ad438b6b14afec61821e21705f9e7ac0651ab9cb (patch) | |
| tree | d5eed8cd4e6cbb931e6125deb63124e274effd81 /test/functional/vimscript/executable_spec.lua | |
| parent | 310d01d8faa58da570a7f50c8e0bf2a9940a5139 (diff) | |
| download | rneovim-ad438b6b14afec61821e21705f9e7ac0651ab9cb.tar.gz rneovim-ad438b6b14afec61821e21705f9e7ac0651ab9cb.tar.bz2 rneovim-ad438b6b14afec61821e21705f9e7ac0651ab9cb.zip | |
fix(ui): exclude hidden windows from tabline window count #36779
Problem: When `vim._extui` is enabled, the default tabline shows an
incorrect window count (e.g., "2" when only 1 window is visible). This
happens because the extui pager window has `focusable=true` (needed for
user interaction) but `hide=true` (not visible by default).
Solution: Modify the window counting logic in `statusline.c` and
`ex_docmd.c:ex_tabs()` to also exclude hidden windows
(`wp->w_config.hide`), not just non-focusable windows.
Also updates test expectations in `cmdline2_spec.lua` which previously
expected the incorrect window count "2" when extui was enabled. The test
now correctly expects no window count indicator when only 1 visible
window exists.
Fixes #36759
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions