File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/vs/workbench/contrib/terminalContrib/stickyScroll/browser Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -265,6 +265,7 @@ export class TerminalStickyScrollOverlay extends Disposable {
265
265
const rowOffset = ! isPartialCommand && command . endMarker ? Math . max ( buffer . viewportY - command . endMarker . line + 1 , 0 ) : 0 ;
266
266
const maxLineCount = Math . min ( this . _rawMaxLineCount , Math . floor ( xterm . rows * Constants . StickyScrollPercentageCap ) ) ;
267
267
const stickyScrollLineCount = Math . min ( promptRowCount + commandRowCount - 1 , maxLineCount ) - rowOffset ;
268
+ const isTruncated = stickyScrollLineCount < promptRowCount + commandRowCount - 1 ;
268
269
269
270
// Hide sticky scroll if it's currently on a line that contains it
270
271
if ( buffer . viewportY <= stickyScrollLineStart ) {
@@ -293,7 +294,7 @@ export class TerminalStickyScrollOverlay extends Disposable {
293
294
start : stickyScrollLineStart + rowOffset ,
294
295
end : stickyScrollLineStart + rowOffset + Math . max ( stickyScrollLineCount - 1 , 0 )
295
296
}
296
- } ) ;
297
+ } ) + ( isTruncated ? '\x1b[0m …' : '' ) ;
297
298
298
299
// If a partial command's sticky scroll would show nothing, just hide it. This is another
299
300
// edge case when using a pager or interactive editor.
You can’t perform that action at this time.
0 commit comments