Skip to content

Random switching between panes #6160

Open

Description

@all500234765

Describe the bug

When you try to diff anything, searching through branches or anything else, it could randomly switch from your diff -> out of diff -> select reflog pane. Same could happen in branch view, it could switch you out from diff/remote branches -> commit pane -> reflog or something.

Everything is done in a split second.
I don't have a mouse4/mouse5 buttons physically, nor do I have some kind of macro or anything.
My layout is default one.

This happens randomly, especially this issue can occur 5 times in a row while trying to review.
I could not reproduce it with --debug run.

To Reproduce

Steps to reproduce the behavior:

Try diffing a large commit(s) in ether Branches or Commits panes

  1. Switch to Commit pane
  2. Enter commit or select multiple commits and press Enter
  3. (I would Shift + > to the bottom most file first, but it don't seem to matter)
  4. Just browsing files, checking them (Focus is not required, it can happen without it)
  5. If you are lucky enough it will randomly switch panes

Also you can get it while scrolling through selected files in Files pane, it then could switch to the submodules pane randomly.

Expected behavior

Nothing should switch me between panes unless I use Arrow Keys/Mouse clicks.

Version info:

  • commit=b741725a2413fc9cbc01529cab0e7cc654ad2054, build date=2026-10-11T09:23:32Z, build source=binaryRelease, version=0.66.1, os=windows, arch=amd64, git version=2.45.2.windows.1

This has been bugging me from at least 0.44 and on, it never happend on 0.33.

Terminal info:

Windows Terminal Preview 1.26.2734.0

Activity

  1. all500234765 commented on Oct 28, 2026

    @all500234765
    Author

    It just jumped from Commit Diff -> Reflog -> Local Branches.
    and after I Alt+Tabbed back to lazygit it jumped Local Branches -> Tags -> Reflog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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