Skip to content

NumMinus in [3] branches checks out previous branch even with Shift- modifier #5253

@goyalyashpal

Description

@goyalyashpal

Describe the bug

NumMinus in [3] branches checks out previous branch even with Shift- modifier

To Reproduce

Steps to reproduce the behavior:

  • 3 > Shift-NumMinus

Expected behavior

  • just like Shift-NumPlus cycles the view in one direction (bigger), i thought Shift-NumMinus would cycle the view in other direction (smaller)
  • i stumbled upon this when trying to cycle views while in diff mode (View branch diff #466 (comment))
  • my expectation for Shift-NumMinus cycling views might have been wrong, but lg's behaviour of cycling branch checkouts is not inline with gui-documentation either. it should have done nothing.

Screenshots

If applicable, add screenshots to help explain your problem.

╭─Keybindings───────────────────────────────────╮
│    --- Local ---                              │
│  - Checkout previous branch                   │
│                                               │
│    --- Global ---                             │
│  + Next screen mode (normal/half/fullscreen)  │
│  _ Prev screen mode                           │
│  | Cycle pagers                               │

Version info:

  • Run lazygit --version and paste the result here

    commit=4486c86271fc83e9ace700b1a472016d692513a5, build date=2026-01-12T19:47:02Z, build source=binaryRelease, version=0.58.1, os=windows, arch=amd64, git version=2.52.0.windows.1
    

Terminal info:

What terminal are you using, and which version? For some types of bugs this information can be relevant.

nil

Additional context

Add any other context about the problem here.

nil

Note

Please try updating to the latest version or manually building the latest master to see if the issue still occurs.


Add a 👍 reaction to issues you find important.

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