Skip to content

Conversation

@rnxden
Copy link
Contributor

@rnxden rnxden commented Jul 5, 2025

Update branch_cache on get_branch() call rather than on update_branch() call to properly cache branches for all opened buffers, instead of only the first buffer.

Fixes #1440

rnxden added 2 commits July 5, 2025 18:21
Update branch_cache on get_branch() call rather than on update_branch()
call to properly cache branches for all opened buffers, instead of only
the first buffer.

Fixes nvim-lualine#1440
Required to properly return the branch status on the first get_branch()
call where bufnr is set.
@shadmansaleh shadmansaleh merged commit 85d1fb9 into nvim-lualine:master Oct 15, 2025
7 checks passed
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: Branch component disappears on inactive windows

2 participants