diff --git a/packages/launch-editor/index.js b/packages/launch-editor/index.js index e5210c6..320f512 100644 --- a/packages/launch-editor/index.js +++ b/packages/launch-editor/index.js @@ -143,7 +143,7 @@ function launchEditor(file, specifiedEditor, onErrorCallback) { } return str } - const launchCommand = [editor, ...args.map(escapeCmdArgs)].map(doubleQuoteIfNeeded).join(' ') + const launchCommand = [editor, ...args].map(escapeCmdArgs).map(doubleQuoteIfNeeded).join(' ') currentChildProcess = childProcess.exec(launchCommand, { stdio: 'inherit',