diff --git a/cmd/mmv/main.go b/cmd/mmv/main.go index 54b7a03..4abd900 100644 --- a/cmd/mmv/main.go +++ b/cmd/mmv/main.go @@ -101,7 +101,7 @@ func rename(args []string) error { } defer tty.Close() - editorWithArgs := strings.Split(editor, " ") + editorWithArgs := strings.Fields(editor) editorWithArgs = append(editorWithArgs, f.Name()) cmd := exec.Command(editorWithArgs[0], editorWithArgs[1:]...)