escape backslashes when dropping paths

This commit is contained in:
Eugene Pankov 2019-05-07 14:11:26 +02:00
parent 32e7d2db5c
commit 005912dfe8

View File

@ -28,6 +28,7 @@ export class PathDropDecorator extends TerminalDecorator {
if (path.indexOf(' ') >= 0) {
path = `"${path}"`
}
path = path.replace(/\\/g, '\\\\')
terminal.sendInput(path + ' ')
}