1
0
mirror of https://github.com/Eugeny/tabby.git synced 2025-09-11 19:04:35 +00:00

escape backslashes when dropping paths

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

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