Skip to content

Commit a554d32

Browse files
authored
Merge pull request #3372 from Puneethnaik/issue_3319_fix
Scrollbar still visible after clearing screen and scrollback buffer with escape sequence #3319
2 parents a78e07e + 6f159aa commit a554d32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/common/CoreTerminal.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ export abstract class CoreTerminal extends Disposable implements ICoreTerminal {
125125
this._onScroll.fire({ position: this._bufferService.buffer.ydisp, source: ScrollSource.TERMINAL });
126126
this._dirtyRowService.markRangeDirty(this._bufferService.buffer.scrollTop, this._bufferService.buffer.scrollBottom);
127127
}));
128+
this.register(this._inputHandler.onScroll(event => {
129+
this._onScroll.fire({ position: this._bufferService.buffer.ydisp, source: ScrollSource.TERMINAL });
130+
this._dirtyRowService.markRangeDirty(this._bufferService.buffer.scrollTop, this._bufferService.buffer.scrollBottom);
131+
}));
128132

129133
// Setup WriteBuffer
130134
this._writeBuffer = new WriteBuffer((data, promiseResult) => this._inputHandler.parse(data, promiseResult));

0 commit comments

Comments
 (0)