Skip to content

"Move commit down one" sometimes opens Diff files section #5517

@lobneroO

Description

@lobneroO

Describe the bug

When in the [4] - Commits pannel, Ctrl + j should move the current commit down by one commit in the history. I have used this multiple times, but sometimes I run into the isse of this opening "Diff files" in the space of the Commits section.
I'm pretty sure this is constant when I'm opening LazyGit inside Neovim with the LazyGit plugin, but usually quitting out of Neovim and then opening LazyGit by itself worked. Now however I ran into this again with LazyGit open inside a Zellij tab, which makes this very annoying. Quitting out of Zellij, just opening LazyGit in git-bash then solved the issue.

To Reproduce

Steps to reproduce the behavior:

  1. Open git-bash on Windows, open Zellij in that git-bash
  2. Open lazygit in a repository, move to the Commits section
  3. Use "Ctrl+j" to move the current commit down by one --> Diff files opens
  4. Quit out of LazyGit and Zellij, stay in git-bash
  5. Move to the same repository, reopen LazyGit (but not Zellij), go to the Commits section
  6. Use "Ctlr+j" to move the current commit down by one --> works

Expected behavior

Ctrl+j always moves the current commit down by one, never opens Diff ifles

Screenshots

Image

Version info:

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

Terminal info:

Windows Terminal
Version: 1.23.20211.0

git-bash,
$ git --version
git version 2.53.0.windows.1

Additional context

Windows 11, zellij v0.44.0

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