mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 03:49:40 -08:00
fix(font): ignore enter while downloading font list
This commit is contained in:
parent
37c69e9534
commit
9f5ff92676
|
@ -194,7 +194,7 @@ func (m *main) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||
return m, tea.Quit
|
||||
|
||||
case "enter":
|
||||
if len(m.font) != 0 {
|
||||
if len(m.font) != 0 || m.list == nil || m.list.SelectedItem() == nil {
|
||||
return m, nil
|
||||
}
|
||||
var font *Asset
|
||||
|
|
Loading…
Reference in a new issue