diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-28 16:21:40 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-29 11:37:29 +1100 |
commit | 2756b82f5733c2099c43279ebb1a962101411142 (patch) | |
tree | 9da99d52fab7391bf29eaff02dfbd848b11ff5cb /pkg/gui | |
parent | 52f41ab0d5f367cd01ab385d0ad500833b6baa8a (diff) |
fix width of half screen mode
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/gui.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 624cf2b5f..969c8c942 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -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" { |