mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
fix conditions in Buffer.setBufferLineFactory
This commit is contained in:
+9
-7
@@ -55,14 +55,16 @@ export class Buffer implements IBuffer {
|
||||
}
|
||||
|
||||
public setBufferLineFactory(type: string): void {
|
||||
if (type === 'JsArray' && this._bufferLineConstructor !== BufferLine) {
|
||||
this._bufferLineConstructor = BufferLine;
|
||||
this._recreateLines();
|
||||
} else if (type === 'TypedArray' && this._bufferLineConstructor !== BufferLineTypedArray) {
|
||||
this._bufferLineConstructor = BufferLineTypedArray;
|
||||
this._recreateLines();
|
||||
if (type === 'TypedArray') {
|
||||
if (this._bufferLineConstructor !== BufferLineTypedArray) {
|
||||
this._bufferLineConstructor = BufferLineTypedArray;
|
||||
this._recreateLines();
|
||||
}
|
||||
} else {
|
||||
this._bufferLineConstructor = BufferLine;
|
||||
if (this._bufferLineConstructor !== BufferLine) {
|
||||
this._bufferLineConstructor = BufferLine;
|
||||
this._recreateLines();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user