summary refs log tree commit diff stats
path: root/widgets/compose.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-06-07 10:15:35 -0400
committerDrew DeVault <sir@cmpwn.com>2019-06-07 10:15:35 -0400
commita974027efe9efcad9b334175163aa608a4d5bb31 (patch)
tree1479b098587eb16c59daa91cb4b611564f260c11 /widgets/compose.go
parent150a271b360478e4769928cd94175b4f9acabe2b (diff)
downloadaerc-a974027efe9efcad9b334175163aa608a4d5bb31.tar.gz
Execute the editor with the shell
Fixes #164
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)