Skip to content

Commit 17b5a45

Browse files
authored
Merge pull request microsoft#76054 from microsoft/tyriar/76032_cmd_track_bug
Floor scrolled line in command tracking
2 parents 4cd0e32 + b6d4674 commit 17b5a45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/contrib/terminal/browser/terminalCommandTracker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class TerminalCommandTracker implements ITerminalCommandTracker, IDisposa
112112
private _scrollToMarker(marker: IMarker, position: ScrollPosition): void {
113113
let line = marker.line;
114114
if (position === ScrollPosition.Middle) {
115-
line = Math.max(line - this._xterm.rows / 2, 0);
115+
line = Math.max(line - Math.floor(this._xterm.rows / 2), 0);
116116
}
117117
this._xterm.scrollToLine(line);
118118
}

0 commit comments

Comments
 (0)