File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/vs/workbench/contrib/terminalContrib/stickyScroll/browser Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -337,8 +337,9 @@ export class TerminalStickyScrollOverlay extends Disposable {
337
337
// following command.
338
338
let endMarkerOffset = 0 ;
339
339
if ( ! isPartialCommand && command . endMarker && command . endMarker . line !== - 1 ) {
340
- if ( buffer . viewportY + stickyScrollLineCount > command . endMarker . line ) {
341
- const diff = buffer . viewportY + stickyScrollLineCount - command . endMarker . line ;
340
+ const lastLine = Math . min ( command . endMarker . line , buffer . baseY + buffer . cursorY ) ;
341
+ if ( buffer . viewportY + stickyScrollLineCount > lastLine ) {
342
+ const diff = buffer . viewportY + stickyScrollLineCount - lastLine ;
342
343
endMarkerOffset = diff * rowHeight ;
343
344
}
344
345
}
You can’t perform that action at this time.
0 commit comments