Skip to content

Commit fffda8e

Browse files
authored
Merge pull request microsoft#201323 from microsoft/tyriar/201303
Fix sticky scroll showing up on first line
2 parents c963186 + 896a06d commit fffda8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollOverlay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export class TerminalStickyScrollOverlay extends Disposable {
258258
const stickyScrollLineCount = Math.min(promptRowCount + commandRowCount - 1, maxLineCount) - rowOffset;
259259

260260
// Hide sticky scroll if it's currently on a line that contains it
261-
if (buffer.viewportY === stickyScrollLineStart) {
261+
if (buffer.viewportY <= stickyScrollLineStart) {
262262
this._setVisible(false);
263263
return;
264264
}

0 commit comments

Comments
 (0)