1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-12 11:15:00 +02:00

fix width of half screen mode

This commit is contained in:
Jesse Duffield 2020-03-28 16:21:40 +11:00
parent 52f41ab0d5
commit 2756b82f57

View File

@ -549,7 +549,7 @@ func (gui *Gui) layout(g *gocui.Gui) error {
case SCREEN_NORMAL:
leftSideWidth = int(float64(width) * sidePanelWidthRatio)
case SCREEN_HALF:
leftSideWidth = width / 2
leftSideWidth = width/2 - 2
case SCREEN_FULL:
currentView := gui.g.CurrentView()
if currentView != nil && currentView.Name() == "main" {