diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-06-07 10:15:35 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-06-07 10:15:35 -0400 |
commit | a974027efe9efcad9b334175163aa608a4d5bb31 (patch) | |
tree | 1479b098587eb16c59daa91cb4b611564f260c11 /widgets/compose.go | |
parent | 150a271b360478e4769928cd94175b4f9acabe2b (diff) | |
download | aerc-a974027efe9efcad9b334175163aa608a4d5bb31.tar.gz |
Execute the editor with the shell
Fixes #164
Diffstat (limited to 'widgets/compose.go')
-rw-r--r-- | widgets/compose.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/compose.go b/widgets/compose.go index 26b567f0..a2fa6631 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) |