File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ; // ??
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments