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

Focus in the local branches tab jumps after fetch #4116

Open
wolfgangwalther opened this issue Dec 14, 2024 · 0 comments
Open

Focus in the local branches tab jumps after fetch #4116

wolfgangwalther opened this issue Dec 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@wolfgangwalther
Copy link

Describe the bug

Whenever a "git fetch" operation runs/finishes the focus in the local branches seems to jump back to the branch it was on when starting the fetch.

This seems to happen for both manual fetches via "f" and auto fetches in the background.

To Reproduce
Steps to reproduce the behavior:

  1. Change refresher.fetchInterval to 1 second.
  2. Go to "Local branches"
  3. Go through your list of branches maybe ~2 / second.
  4. Notice that the selected branch jumps back repeatedly.

Expected behavior
A fetch operation should not affect the selected branch.

Version info:

commit=4a7cf6040, build date=20241212.080257, build source=unknown, version=v0.44.1.4a7cf6040, os=linux, arch=amd64, git version=2.47.1

Additional context
This is especially problematic when you navigate to a different branch to delete it - if you do that fast enough and are unlucky enough... you'll end up deleting a different branch than you wanted to, because the selection jumps between "navigate to the branch" and "hit delete".

@wolfgangwalther wolfgangwalther added the bug Something isn't working label Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant