Skip to content

Commit

Permalink
Add quotes around file path for paths with spaces (#76)
Browse files Browse the repository at this point in the history
* Add quotes around file path for paths with spaces

* remove backslashes for quotes in startScene
  • Loading branch information
RickLuiken authored Nov 3, 2024
1 parent 7ea27bd commit 9e1b6f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/startStopScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit 9e1b6f4

Please sign in to comment.