From a974027efe9efcad9b334175163aa608a4d5bb31 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 7 Jun 2019 10:15:35 -0400 Subject: [PATCH] Execute the editor with the shell Fixes #164 --- widgets/compose.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)