aboutsummaryrefslogtreecommitdiff
path: root/widgets/compose.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/compose.go')
-rw-r--r--widgets/compose.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/compose.go b/widgets/compose.go
index 26b567f..a2fa663 100644
--- a/widgets/compose.go
+++ b/widgets/compose.go
@@ -332,7 +332,7 @@ func (c *Composer) ShowTerminal() {
if editorName == "" {
editorName = "vi"
}
- editor := exec.Command(editorName, c.email.Name())
+ editor := exec.Command("/bin/sh", "-c", editorName+" "+c.email.Name())
c.editor, _ = NewTerminal(editor) // TODO: handle error
c.editor.OnClose = c.termClosed
c.grid.AddChild(c.editor).At(1, 0)