mirror of
https://github.com/charmbracelet/gum
synced 2024-06-26 17:20:16 +02:00
chore: Rename Timeout Option
This commit is contained in:
parent
36c5ba5f1e
commit
f296524989
|
@ -106,8 +106,8 @@ func (o Options) Run() error {
|
|||
itemStyle: o.ItemStyle.ToLipgloss(),
|
||||
selectedItemStyle: o.SelectedItemStyle.ToLipgloss(),
|
||||
numSelected: currentSelected,
|
||||
hasTimeout: o.TimeoutOptions.HasTimeout(),
|
||||
timeout: o.TimeoutOptions.Timeout,
|
||||
hasTimeout: o.Timeout > 0,
|
||||
timeout: o.Timeout,
|
||||
}, tea.WithOutput(os.Stderr)).Run()
|
||||
|
||||
if err != nil {
|
||||
|
|
|
@ -36,7 +36,7 @@ func (o Options) Run() error {
|
|||
lineNumberStyle: o.LineNumberStyle.ToLipgloss(),
|
||||
softWrap: o.SoftWrap,
|
||||
timeout: o.Timeout,
|
||||
hasTimeout: o.HasTimeout(),
|
||||
hasTimeout: o.Timeout > 0,
|
||||
}
|
||||
_, err := tea.NewProgram(model, tea.WithAltScreen()).Run()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue