Merge pull request #206481 from microsoft/tyriar/199554

Hide sticky scroll when the prompt is trimmed
This commit is contained in:
Daniel Imms
2024-02-28 14:26:20 -08:00
committed by GitHub

View File

@@ -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();