mirror of
https://github.com/itchyny/mmv.git
synced 2025-12-28 15:57:23 +08:00
fix to use strings.Fields to split
This commit is contained in:
parent
e21be145b5
commit
fce83774d2
1 changed files with 1 additions and 1 deletions
|
|
@ -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:]...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue