Skip to content

Commit 4b93f8a

Browse files
committed
Make bash window prompt adjuster more strict
Fixes microsoft#210773
1 parent dd4b103 commit 4b93f8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/platform/terminal/common/capabilities/commandDetectionCapability.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ class WindowsPtyHeuristics extends Disposable {
946946
}
947947

948948
// Bash Prompt
949-
const bashPrompt = lineText.match(/^(?<prompt>.*\$)/)?.groups?.prompt;
949+
const bashPrompt = lineText.match(/^(?<prompt>\$)/)?.groups?.prompt;
950950
if (bashPrompt) {
951951
const adjustedPrompt = this._adjustPrompt(bashPrompt, lineText, '$');
952952
if (adjustedPrompt) {

0 commit comments

Comments
 (0)