Skip to content

Commit 13ff29e

Browse files
committed
fix: resolve path encoding issue converting spaces to plus signs (+)
1 parent baf4b59 commit 13ff29e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/app/view/term/osc-handlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export function handleOsc7Command(data: string, blockId: string, loaded: boolean
238238
console.log("Invalid OSC 7 command received (non-file protocol)", data);
239239
return true;
240240
}
241-
pathPart = decodeURIComponent(url.pathname);
241+
pathPart = decodeURIComponent(url.pathname.replace(/\+/g, " "));
242242

243243
// Normalize double slashes at the beginning to single slash
244244
if (pathPart.startsWith("//")) {

0 commit comments

Comments
 (0)