Description
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:
- Configure two different log commands for allBranchesLogCmds configuration option in config.yml
- In lazygit press 1 to focus status panel
- In lazygit check output of log command
- In lazygit press 2 to focus files panel
- In lazygit press 1 to focus status panel
- 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