Skip to content

gui.mainPanelSplitMode: {vertical,horizontal} split in the wrong direction  #2441

@cgsheeh

Description

@cgsheeh

Describe the bug
Setting gui.mainPanelSplitMode splits the view vertically when set to "horizontal" and horizontally when set to "vertical".

To Reproduce
Steps to reproduce the behavior:

  1. Set gui.mainPanelSplitMode to 'horizontal' in your LazyGit config.
  2. Load LazyGit and split the main panel. For example write a change to a file and attempt to commit specific hunks from the file.
  3. The split will be vertical, ie creating two side-by-side panels.

Expected behavior
The split should be created with two panels one above the other, ie vertically.

Version info:
commit=16802a048e0425182f08cf0e9a2bc31480e9a55d, build date=2023-02-01T11:02:43Z, build source=binaryRelease, version=0.37.0, os=linux, arch=amd64, git version=2.31.1
git version 2.31.1

Additional context
It seems this statement has the values of true and false swapped. I tested locally and changing the values does cause the screen to split in the correct direction, and running go run cmd/integration_test/main.go cli seems happy. I can submit as a PR if this is in fact a bug.

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