Execute the editor with the shell

Fixes #164
This commit is contained in:
Drew DeVault 2019-06-07 10:15:35 -04:00
parent 150a271b36
commit a974027efe

View file

@ -332,7 +332,7 @@ func (c *Composer) ShowTerminal() {
if editorName == "" { if editorName == "" {
editorName = "vi" 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, _ = NewTerminal(editor) // TODO: handle error
c.editor.OnClose = c.termClosed c.editor.OnClose = c.termClosed
c.grid.AddChild(c.editor).At(1, 0) c.grid.AddChild(c.editor).At(1, 0)