Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit 73c6396

Browse files
committed
✨ fsDisp - Add quotes around file names
#269
1 parent de90d77 commit 73c6396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classes/filesystem.class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class FilesystemDisplay {
210210
hidden = " hidden";
211211
}
212212

213-
let cmd = `window.term.write('${e.name}')`;
213+
let cmd = `window.term.write('\\'${e.name}'\\')`;
214214
if (e.type === "dir" || e.type === "up" || e.type.endsWith("Dir")) {
215215
cmd = `window.term.writelr('cd \\'${e.name.replace("\\", "\\\\")}\\'')`;
216216
}

0 commit comments

Comments
 (0)