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
1 changed files with 1 additions and 1 deletions

View File

@ -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)