Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: respect tab count in toggle_bufferline() #950

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TommyCox
Copy link

Adjusts toggle_bufferline() to respect the number of tabs by falling back to builtin tab-count-based toggling of the tabline when always_show_bufferline = false and NOT in tabpage-only mode. Fixes #925.

Change `toggle_bufferline()` fallback value for `vim.o.showtabline` from
0 (always hide tabline) to 1 (show tabline if multiple tabpages exist).
This should fix akinsho#925.
@TommyCox
Copy link
Author

@akinsho Just realized that the issue could be fixed by changing one character instead of rewriting multiple lines. The new commit just changes the fallback value from 0 (never show tabline) to 1 (show tabline when multiple tabpages exist).

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.

[Bug]: Tabline hidden by interaction with scope.nvim
1 participant