Skip to content

Commit 63b2581

Browse files
committed
Fix soft reset breaking default attribute
Fixes #2196
1 parent ebb2171 commit 63b2581

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/InputHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,7 @@ export class InputHandler extends Disposable implements IInputHandler {
18161816
this._terminal.applicationCursor = false;
18171817
this._terminal.buffer.scrollTop = 0;
18181818
this._terminal.buffer.scrollBottom = this._terminal.rows - 1;
1819-
this._terminal.curAttrData = DEFAULT_ATTR_DATA;
1819+
this._terminal.curAttrData = DEFAULT_ATTR_DATA.clone();
18201820
this._terminal.buffer.x = this._terminal.buffer.y = 0; // ?
18211821
this._terminal.charset = null;
18221822
this._terminal.glevel = 0; // ??

src/core/buffer/BufferLine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export class AttributeData implements IAttributeData {
217217
}
218218
}
219219

220-
export const DEFAULT_ATTR_DATA = new AttributeData();
220+
export const DEFAULT_ATTR_DATA = Object.freeze(new AttributeData());
221221

222222
/**
223223
* CellData - represents a single Cell in the terminal buffer.

0 commit comments

Comments
 (0)