diff --git a/field_text.go b/field_text.go index a9bbed5..3c9594b 100644 --- a/field_text.go +++ b/field_text.go @@ -215,7 +215,7 @@ func (t *Text) Update(msg tea.Msg) (tea.Model, tea.Cmd) { case key.Matches(msg, t.keymap.Editor): ext := strings.TrimPrefix(t.editorExtension, ".") tmpFile, _ := os.CreateTemp(os.TempDir(), "*."+ext) - cmd := exec.Command(t.editorCmd, append(t.editorArgs, tmpFile.Name())...) + cmd := exec.Command(t.editorCmd, append(t.editorArgs, tmpFile.Name())...) //nolint _ = os.WriteFile(tmpFile.Name(), []byte(t.textarea.Value()), 0600) cmds = append(cmds, tea.ExecProcess(cmd, func(error) tea.Msg { content, _ := os.ReadFile(tmpFile.Name()) diff --git a/form.go b/form.go index 9f1aba6..1b8d518 100644 --- a/form.go +++ b/form.go @@ -63,7 +63,7 @@ type Form struct { keymap *KeyMap teaOptions []tea.ProgramOption - layout Layout + layout Layout } // NewForm returns a form with the given groups and default themes and