diff options
author | luukvbaal <luukvbaal@gmail.com> | 2024-11-17 00:32:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-16 15:32:36 -0800 |
commit | f85bc41c800d7f5c0256f29aa347a53600a7c8d5 (patch) | |
tree | 1f3c0bd41f196856945b363d7de0f0aaa3b4d5dd /src/nvim/statusline.c | |
parent | 29ded889579a9d590e8ea885a9a402ff4bae87be (diff) | |
download | rneovim-f85bc41c800d7f5c0256f29aa347a53600a7c8d5.tar.gz rneovim-f85bc41c800d7f5c0256f29aa347a53600a7c8d5.tar.bz2 rneovim-f85bc41c800d7f5c0256f29aa347a53600a7c8d5.zip |
feat(ui): don't show unfocusable windows in :tabs, 'tabline' #27984
Problem: Floating windows with focusable set to false can reasonably be
expected to be UI elements but are listed in some outputs that
should contain only regular windows.
Solution: Hide unfocusable floating windows from the default tabline and
:tabs.
Diffstat (limited to 'src/nvim/statusline.c')
-rw-r--r-- | src/nvim/statusline.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/statusline.c b/src/nvim/statusline.c index ba64633df7..4e78067d46 100644 --- a/src/nvim/statusline.c +++ b/src/nvim/statusline.c @@ -760,7 +760,9 @@ void draw_tabline(void) bool modified = false; for (wincount = 0; wp != NULL; wp = wp->w_next, wincount++) { - if (bufIsChanged(wp->w_buffer)) { + if (!wp->w_config.focusable) { + wincount--; + } else if (bufIsChanged(wp->w_buffer)) { modified = true; } } |