diff --git a/internal/setup/projects.go b/internal/setup/projects.go index 285133f3..87207d8b 100644 --- a/internal/setup/projects.go +++ b/internal/setup/projects.go @@ -50,10 +50,11 @@ func (p projectModel) Init() tea.Cmd { func (m projectModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { var cmd tea.Cmd + // if we've selected the option to create a new project, delegate to the textInput model if m.showInput { m.textInput, cmd = m.textInput.Update(msg) - // catch the enter key here to update the model when a final value is provided + // catch the enter key here to update the projectModel when a final value is provided switch msg := msg.(type) { case tea.KeyMsg: switch {