Skip to content

Status panel cycles through log commands when switching panels #4469

Open
@HoT-1

Description

@HoT-1

Describe the bug
The status panel (panel 1) allows cycling through different log commands if more than one is specified via allBranchesLogCmds configuration option.
If you switch focus between the status panel and different panel (e.g. using tab or number keys) I would expect the same log command output to come up as before.
But it seems that the output cycles through the log commands as if I had pressed the 'a' key after switching panels.

To Reproduce
Steps to reproduce the behavior:

  1. Configure two different log commands for allBranchesLogCmds configuration option in config.yml
  2. In lazygit press 1 to focus status panel
  3. In lazygit check output of log command
  4. In lazygit press 2 to focus files panel
  5. In lazygit press 1 to focus status panel
  6. In lazygit compare output of log command to previous output

Expected behavior
I expect to see the output of the same git log command after switching away from and back to the status panel.

Version info:
commit=1b571f9e6b0a9a0040654aaf99333509a74613fc, build date=2025-03-01T02:30:10Z, build source=binaryRelease, version=0.48.0, os=linux, arch=amd64, git version=2.27.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