From c71c918c86ea2ebdda6d55725831635f186ae3a7 Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Wed, 7 Sep 2022 21:01:42 -0400 Subject: [PATCH] fix(choose): fix spacing for limit == 1 gum choose --- choose/options.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/choose/options.go b/choose/options.go index 3869371..68eb412 100644 --- a/choose/options.go +++ b/choose/options.go @@ -9,10 +9,10 @@ type Options struct { Limit int `help:"Maximum number of options to pick" default:"1" group:"Selection"` NoLimit bool `help:"Pick unlimited number of options (ignores limit)" group:"Selection"` Height int `help:"Height of the list" default:"10" env:"GUM_CHOOSE_HEIGHT"` - Cursor string `help:"Prefix to show on item that corresponds to the cursor position" default:">" env:"GUM_CHOOSE_CURSOR"` - CursorPrefix string `help:"Prefix to show on the cursor item (hidden if limit is 1)" default:" ○ " env:"GUM_CHOOSE_CURSOR_PREFIX"` - SelectedPrefix string `help:"Prefix to show on selected items (hidden if limit is 1)" default:" ◉ " env:"GUM_CHOOSE_SELECTED_PREFIX"` - UnselectedPrefix string `help:"Prefix to show on unselected items (hidden if limit is 1)" default:" ○ " env:"GUM_CHOOSE_UNSELECTED_PREFIX"` + Cursor string `help:"Prefix to show on item that corresponds to the cursor position" default:"> " env:"GUM_CHOOSE_CURSOR"` + CursorPrefix string `help:"Prefix to show on the cursor item (hidden if limit is 1)" default:"○ " env:"GUM_CHOOSE_CURSOR_PREFIX"` + SelectedPrefix string `help:"Prefix to show on selected items (hidden if limit is 1)" default:"◉ " env:"GUM_CHOOSE_SELECTED_PREFIX"` + UnselectedPrefix string `help:"Prefix to show on unselected items (hidden if limit is 1)" default:"○ " env:"GUM_CHOOSE_UNSELECTED_PREFIX"` Selected []string `help:"Options that should start as selected" default:"" env:"GUM_CHOOSE_SELECTED"` CursorStyle style.Styles `embed:"" prefix:"cursor." set:"defaultForeground=212" envprefix:"GUM_CHOOSE_CURSOR_"` ItemStyle style.Styles `embed:"" prefix:"item." hidden:"" envprefix:"GUM_CHOOSE_ITEM_"`