From 912fc98d3a9187ae6d90197539be1ccc294f4c57 Mon Sep 17 00:00:00 2001 From: omuretsu <84951833+Snarling@users.noreply.github.com> Date: Fri, 26 May 2023 12:09:44 -0400 Subject: [PATCH] Fix ls clickable links in directory --- src/Terminal/commands/ls.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Terminal/commands/ls.tsx b/src/Terminal/commands/ls.tsx index 29fb48f70..95a35b30d 100644 --- a/src/Terminal/commands/ls.tsx +++ b/src/Terminal/commands/ls.tsx @@ -132,7 +132,7 @@ export function ls(args: (string | number | boolean)[], server: BaseServer): voi )(); const fullPath = combinePath(baseDirectory, props.path); function onClick() { - const code = server.scripts.get(props.path)?.content ?? ""; + const code = server.scripts.get(fullPath)?.content ?? ""; const map = new Map(); map.set(fullPath, code); Router.toScriptEditor(map);