diff options
Diffstat (limited to 'pkg/gui/options_menu_panel.go')
-rw-r--r-- | pkg/gui/options_menu_panel.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pkg/gui/options_menu_panel.go b/pkg/gui/options_menu_panel.go index b9df16722..3ca6ea388 100644 --- a/pkg/gui/options_menu_panel.go +++ b/pkg/gui/options_menu_panel.go @@ -3,6 +3,7 @@ package gui import ( "strings" + "github.com/jesseduffield/lazygit/pkg/gui/presentation" "github.com/jesseduffield/lazygit/pkg/gui/style" "github.com/jesseduffield/lazygit/pkg/gui/types" "github.com/jesseduffield/lazygit/pkg/utils" @@ -34,16 +35,12 @@ func (gui *Gui) getBindings(context types.Context) []*types.Binding { func (gui *Gui) displayDescription(binding *types.Binding) string { if binding.OpensMenu { - return opensMenuStyle(binding.Description) + return presentation.OpensMenuStyle(binding.Description) } return style.FgCyan.Sprint(binding.Description) } -func opensMenuStyle(str string) string { - return style.FgMagenta.Sprintf("%s...", str) -} - func (gui *Gui) handleCreateOptionsMenu() error { context := gui.currentContext() bindings := gui.getBindings(context) |