Skip to content

Commit

Permalink
fix to use strings.Fields to split
Browse files Browse the repository at this point in the history
  • Loading branch information
tgfjt committed Sep 18, 2020
1 parent e21be14 commit fce8377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/mmv/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:]...)
Expand Down

0 comments on commit fce8377

Please sign in to comment.