aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Adams <lukeclydeadams@gmail.com>2018-10-05 13:12:47 -0600
committerLuke Adams <lukeclydeadams@gmail.com>2018-10-05 13:12:47 -0600
commit788cdb0633d71f881c709941311c768280fbb33e (patch)
treef124cbe6c4e5bc2a428d3a874704906609bcd318
parentb23f539a77c4ff16520e3b643a65e7be25129258 (diff)
downloadgit-bug-788cdb0633d71f881c709941311c768280fbb33e.tar.gz
Set minimum width for labelSelect
-rw-r--r--termui/label_select.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/termui/label_select.go b/termui/label_select.go
index 56404559..1a19a9e5 100644
--- a/termui/label_select.go
+++ b/termui/label_select.go
@@ -90,7 +90,7 @@ func (ls *labelSelect) layout(g *gocui.Gui) error {
maxX, maxY := g.Size()
ls.childViews = nil
- width := 0
+ width := 5
for _, label := range ls.labels {
width = maxInt(width, len(label))
}