Skip to content

Unstaged changes window jumped into a previously edited file #2037

@mario-amazing

Description

@mario-amazing

Describe the bug
When I want to stage changes inside the file, the focus jumped to the previous edited file

To Reproduce
Steps to reproduce the behavior:

  1. Go to
  2. Click <enter> on the first file -> Unstaged changes focused with Staged window near
  3. Press 2 (goto Files section)
  4. Click on the second file -> Unstaged changes focused without Staged window
  5. Press <j> or <k> for move inside file
  6. See that file was jumped from second file to the first one

Expected behavior
On pressed, open file and stay in it after pressing

Screenshots

Jump.bug.mp4

Desktop:

  • OS: MacOs BigSur 11.6.7
  • Lazygit Version 0.34 arch=amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions