mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 06:25:37 +00:00
Merge pull request #210776 from microsoft/tyriar/210773
Make bash window prompt adjuster more strict
This commit is contained in:
commit
a21b3e7a7b
1 changed files with 1 additions and 1 deletions
|
@ -950,7 +950,7 @@ class WindowsPtyHeuristics extends Disposable {
|
|||
}
|
||||
|
||||
// Bash Prompt
|
||||
const bashPrompt = lineText.match(/^(?<prompt>.*\$)/)?.groups?.prompt;
|
||||
const bashPrompt = lineText.match(/^(?<prompt>\$)/)?.groups?.prompt;
|
||||
if (bashPrompt) {
|
||||
const adjustedPrompt = this._adjustPrompt(bashPrompt, lineText, '$');
|
||||
if (adjustedPrompt) {
|
||||
|
|
Loading…
Reference in a new issue