Skip to content

Layout flashing when use custom command #4189

@xzbdmw

Description

@xzbdmw

Describe the bug
as title

To Reproduce
config:

# Config relating to the Lazygit UI
gui:
    # Number from 0 to 1.0.
    sidePanelWidth: 0.33
    # If true, increase the height of the focused side window; creating an accordion effect.
    expandFocusedSidePanel: false
    showBottomLine: false
customCommands:
  - key: <c-o>
    command: 'echo "hello"'
    context: "files"

press <c-o>, layout changes as if expandFocusedSidePanel and showBottomLine are both true for a very brief moment.

Expected behavior
no flashing

iShot_2025-01-21_07.28.39.mp4

Screenshots
If applicable, add screenshots to help explain your problem.
wrong moment:

Image

Version info:
Latest main

Additional context
Add any other context about the problem here.

Note: please try updating to the latest version or manually building the latest master to see if the issue still occurs.

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