diff options
| author | Paul Buetow <paul@buetow.org> | 2024-07-28 23:11:17 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-07-28 23:11:17 +0300 |
| commit | d1a76d38823e2ada4eb30e175a17471550017900 (patch) | |
| tree | f681eb0850fe133a8633dc7531792da621d9521f /internal/client/tui/compose.go | |
| parent | c4454028242e384927d74bf32ae6230be52f8119 (diff) | |
refactor
Diffstat (limited to 'internal/client/tui/compose.go')
| -rw-r--r-- | internal/client/tui/compose.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/client/tui/compose.go b/internal/client/tui/compose.go index 3148b2a..4672462 100644 --- a/internal/client/tui/compose.go +++ b/internal/client/tui/compose.go @@ -28,10 +28,10 @@ func composeAction(conf config.ClientConfig, queue bool) tea.Cmd { }) } -func openEditor(editor, filePath string, callback func() error) tea.Cmd { +func openEditor(editor, filePath string, cb func() error) tea.Cmd { return tea.ExecProcess(exec.Command(editor, filePath), func(err error) tea.Msg { return finishedMsg{ - callback: callback, + cb: cb, err: err, } }) |
