summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-03-28 16:21:40 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-03-29 11:37:29 +1100
commit2756b82f5733c2099c43279ebb1a962101411142 (patch)
tree9da99d52fab7391bf29eaff02dfbd848b11ff5cb /pkg
parent52f41ab0d5f367cd01ab385d0ad500833b6baa8a (diff)
fix width of half screen mode
Diffstat (limited to 'pkg')
-rw-r--r--pkg/gui/gui.go2
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" {