diff options
author | Luke Adams <lukeclydeadams@gmail.com> | 2018-10-05 13:12:47 -0600 |
---|---|---|
committer | Luke Adams <lukeclydeadams@gmail.com> | 2018-10-05 13:12:47 -0600 |
commit | 788cdb0633d71f881c709941311c768280fbb33e (patch) | |
tree | f124cbe6c4e5bc2a428d3a874704906609bcd318 | |
parent | b23f539a77c4ff16520e3b643a65e7be25129258 (diff) | |
download | git-bug-788cdb0633d71f881c709941311c768280fbb33e.tar.gz |
Set minimum width for labelSelect
-rw-r--r-- | termui/label_select.go | 2 |
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)) } |