From 9e1b6f42b5573d445cf284ea5a72a4d4819e9823 Mon Sep 17 00:00:00 2001 From: RickLuiken <34110371+RickLuiken@users.noreply.github.com> Date: Sun, 3 Nov 2024 15:26:53 +0100 Subject: [PATCH] Add quotes around file path for paths with spaces (#76) * Add quotes around file path for paths with spaces * remove backslashes for quotes in startScene --- src/startStopScene.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/startStopScene.ts b/src/startStopScene.ts index c2e6a1fd..17a3de9b 100644 --- a/src/startStopScene.ts +++ b/src/startStopScene.ts @@ -71,7 +71,7 @@ export async function startScene(lineStart?: number) { // Create the command const filePath = editor.document.fileName; // absolute path - const cmds = ["manimgl", filePath, sceneName]; + const cmds = ["manimgl", `"${filePath}"`, sceneName]; let enter = false; if (cursorLine !== matchingClass.index) { cmds.push(`-se ${lineNumber + 1}`);