lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Unstaged changes window jumped into a previously edited file

Open mario-amazing opened this issue 3 years ago • 3 comments

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

https://user-images.githubusercontent.com/9537753/178950812-b34ba3f3-9786-4a29-a984-6b98097aeeca.mp4

Desktop:

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

mario-amazing avatar Jul 14 '22 09:07 mario-amazing

Could you try building the current master to see if it was fixed after v0.34?

mark2185 avatar Jul 14 '22 10:07 mark2185

@mark2185, I've run this on the latest master, but still, have this issue. commands that have been run from Readme:

git clone https://github.com/jesseduffield/lazygit.git
cd lazygit
go install
go run main.go

mario-amazing avatar Jul 14 '22 10:07 mario-amazing

Alright, someone will take a look. Thanks for reporting!

mark2185 avatar Jul 14 '22 12:07 mark2185