Skip to content

Commit 896a06d

Browse files
committed
Fix sticky scroll showing up on first line
Fixes microsoft#201303
1 parent c963186 commit 896a06d

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)