Skip to content

Commit 25b69e5

Browse files
committed
Fix repetitive microtask problem
See xtermjs#4145
1 parent 37c722d commit 25b69e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/input/WriteBuffer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export class WriteBuffer {
217217
this._callbacks = this._callbacks.slice(this._bufferOffset);
218218
this._bufferOffset = 0;
219219
}
220-
queueMicrotask(() => this._innerWrite());
220+
setTimeout(() => this._innerWrite());
221221
} else {
222222
this._writeBuffer.length = 0;
223223
this._callbacks.length = 0;

0 commit comments

Comments
 (0)