Skip to content

Commit 3ddc4dc

Browse files
authored
Merge pull request microsoft#66359 from TylerLeonhardt/single-quote-edgecase
Handle the edge case where there's a single quote but no space
2 parents c9a90bc + 8b2726d commit 3ddc4dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ export class TerminalInstance implements ITerminalInstance {
801801
pathBasename === 'powershell' ||
802802
this.title === 'powershell';
803803

804-
if (hasSpace && isPowerShell) {
804+
if (isPowerShell && (hasSpace || originalPath.indexOf('\'') !== -1)) {
805805
c(`& '${originalPath.replace('\'', '\'\'')}'`);
806806
return;
807807
}

0 commit comments

Comments
 (0)