-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
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:
- Set
gui.mainPanelSplitModeto'horizontal'in your LazyGit config. - Load LazyGit and split the main panel. For example write a change to a file and attempt to commit specific hunks from the file.
- 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.