jesseduffield / jesseduffield/lazygit

Scrolling changes tab

Open
#5,770 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

### Describe the bug
Sometimes when you scroll through for example a files' unstaged changes it suddenly changes the tab from Files to Submodules. Same goes for Local branches to Tags.

### To Reproduce
Steps to reproduce the behavior:

1. Go to unstaged changes or another long scrollable view
2. Scroll until you're scrolled past like halfway at least
3. See the tab change

### Expected behavior
Continue scrolling normally instead of changing the tab

### Screenshots
If applicable, add screenshots to help explain your problem.

### Version info:
commit=2f6d20275afd5fc9b623500c9194a2c732936014, build date=2026-03-09T19:51:31Z, build source=binaryRelease, version=0.60.0, os=windows, arch=amd64, git version=2.53.0.windows.2

### Terminal info:
Windows Terminal with CMD profile
What terminal are you using, and which version? For some types of bugs this information can be relevant.

### Additional context
Add any other context about the problem here.

> [!NOTE]
> Please try updating to the latest version or [manually building](https://github.com/jesseduffield/lazygit/#manual) the latest `master` to see if the issue still occurs.

Still occurs on another windows PC with the newest version (i've had this issue on all 3 of my windows devices, but doesn't happen on macOS)

Contributor guide

Open the contributing guide

Research direction

First reproduce the tab change in a long scrollable view on Windows Terminal with the reported version or latest master. Trace the CLI's scroll handling and tab-selection behavior for views such as unstaged changes and local branches; done means scrolling never changes tabs unexpectedly while normal tab navigation still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.