Skip to content

Commit 6640dbd

Browse files
committed
Don't crash if terminal open and closed quickly
1 parent b1aee19 commit 6640dbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/browser/Viewport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export class Viewport extends Disposable {
170170
}
171171

172172
private _sync(ydisp: number = this._bufferService.buffer.ydisp): void {
173-
if (!this._renderService || this._isSyncing) {
173+
if (this._isDisposed || !this._renderService || this._isSyncing) {
174174
return;
175175
}
176176
// Defer DOM scroll updates during synchronized output to prevent visible

0 commit comments

Comments
 (0)