summaryrefslogtreecommitdiffstats
path: root/pkg/gui/menu_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-02-25 07:17:49 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-02-25 07:19:46 +1100
commit52b5a6410c33557f754c4a6cd3ce0c69220dc780 (patch)
treeaa4383636b5202bd03015693875d32dfba78798a /pkg/gui/menu_panel.go
parent0034cfef5cb29937c8ac7daf65a5b5bfd1925331 (diff)
show item counts in frames
Diffstat (limited to 'pkg/gui/menu_panel.go')
-rw-r--r--pkg/gui/menu_panel.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/gui/menu_panel.go b/pkg/gui/menu_panel.go
index 335b298b3..da511f6b2 100644
--- a/pkg/gui/menu_panel.go
+++ b/pkg/gui/menu_panel.go
@@ -76,6 +76,7 @@ func (gui *Gui) createMenu(title string, items []*menuItem, createMenuOptions cr
menuView, _ := gui.g.SetView("menu", x0, y0, x1, y1, 0)
menuView.Title = title
menuView.FgColor = theme.GocuiDefaultTextColor
+ menuView.ContainsList = true
menuView.Clear()
fmt.Fprint(menuView, list)
gui.State.Panels.Menu.SelectedLine = 0