mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Merge pull request #206481 from microsoft/tyriar/199554
Hide sticky scroll when the prompt is trimmed
This commit is contained in:
@@ -245,6 +245,12 @@ export class TerminalStickyScrollOverlay extends Disposable {
|
||||
return;
|
||||
}
|
||||
|
||||
// Hide sticky scroll if the prompt has been trimmed from the buffer
|
||||
if (command.promptStartMarker?.line === -1) {
|
||||
this._setVisible(false);
|
||||
return;
|
||||
}
|
||||
|
||||
// Determine sticky scroll line count
|
||||
const buffer = xterm.buffer.active;
|
||||
const promptRowCount = command.getPromptRowCount();
|
||||
|
||||
Reference in New Issue
Block a user