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 git_diff custom source bug with auto-session #1311

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

darrenchang
Copy link

  • git_diff does not cache git_sign_count into diff_cache when rmagatti/auto-session plugin is used to launch nvim session with multiple open windows.
  • This commit makes sure to not use diff_cache value, but instead, uses the custom source to get git sign counts when M.src (custome source for git_diff) is defined.

Before the fix - notice that git_diff information doesn't show on the inactive buffer windows upon nvim launch, until they get focuses

before.mov

With the fix - notice that git_diff information is shown for all buffer windows upoin nvim launch

fixed.mov

- git_diff does not cache git_sign_count into diff_cache
when rmagatti/auto-session plugin is used to launch nvim
session with multiple open windows.
- This commit makes sure to not use diff_cache value, but
instead, uses the custom source to get git sign counts
when M.src (custome source for git_diff) is defined.
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.

1 participant