Skip to content

viewResetOptions of commits view bleeds into the files view #5150

@Axlefublr

Description

@Axlefublr

Describe the bug + To Reproduce + Expected behavior

In files view, I make this mapping: viewResetOptions: x
Then in commits view, I make this mapping: viewResetOptions: x.
Now when I press x in files view, the commits view viewResetOptions pops up, instead of the files view one.

i.e. something in the action resolution results in the commits view action, if the hotkeys are the same.
For instance, if I set the commits view mapping to viewResetOptions: X instead, now x in files view works as expected.

Screenshots

Image

Version info:

  • Run lazygit --version and paste the result here
commit=9e455f427, build date=20251224.222320, build source=unknown, version=v0.57.0.9e455f427, os=linux, arch=amd64, git version=2.52.0
  • Run git --version and paste the result here
git version 2.52.0

Additional context

This is a regression as far as I can tell. This used to work and now has been broken for I think months.
I built latest lazygit from master thinking that hopefully the bug has already been solved here, but no dice. I don't get how I'm seemingly the only person to notice this.

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