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

Commit d9da045

Browse files
committed
🐛 Fix graphical browsing on edex-ified folders
1 parent 2d05a25 commit d9da045

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/classes/filesystem.class.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,14 @@ class FilesystemDisplay {
203203
}
204204

205205
let cmd = `window.term.write('${e.name}')`;
206-
if (e.type === "dir" || e.type === "up") {
206+
if (e.type === "dir" || e.type === "up" || e.type.endsWith("Dir")) {
207207
cmd = `window.term.writelr('cd ${e.name}')`;
208208
}
209209

210210
if (e.type === "up" && this._noTracking) {
211211
cmd = `window.fsDisp.readFS('${path.resolve(this.dirpath, '..')}')`;
212212
}
213-
if (e.type === "dir" && this._noTracking) {
213+
if ((e.type === "dir" || e.type.endsWith("Dir")) && this._noTracking) {
214214
cmd = `window.fsDisp.readFS('${path.resolve(this.dirpath, e.name)}')`;
215215
}
216216

0 commit comments

Comments
 (0)