summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--create/content.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/create/content.go b/create/content.go
index 0e05adf93..13e668201 100644
--- a/create/content.go
+++ b/create/content.go
@@ -105,7 +105,8 @@ func NewContent(
if editor != "" {
jww.FEEDBACK.Printf("Editing %s with %q ...\n", targetPath, editor)
- cmd := exec.Command(editor, contentPath)
+ editorCmd := append(strings.Fields(editor), contentPath)
+ cmd := exec.Command(editorCmd[0], editorCmd[1:]...)
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr