jesseduffield / jesseduffield/lazygit

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

Open
#5,253 3 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
`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 (https://github.com/jesseduffield/lazygit/issues/466#issuecomment-605597601)
* 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](https://github.com/jesseduffield/lazygit/#manual) the latest `master` to see if the issue still occurs.

----
[reaction]: https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/
[issues you find important]: ../issues?q=is%3Aissue+state%3Aopen+sort%3Areactions-%2B1-desc

Add a 👍 [reaction] to [issues you find important].

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.