summaryrefslogtreecommitdiff
path: root/internal/client/tui/compose.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-07-28 23:11:17 +0300
committerPaul Buetow <paul@buetow.org>2024-07-28 23:11:17 +0300
commitd1a76d38823e2ada4eb30e175a17471550017900 (patch)
treef681eb0850fe133a8633dc7531792da621d9521f /internal/client/tui/compose.go
parentc4454028242e384927d74bf32ae6230be52f8119 (diff)
refactor
Diffstat (limited to 'internal/client/tui/compose.go')
-rw-r--r--internal/client/tui/compose.go4
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,
}
})