File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/vs/workbench/contrib/terminal/browser Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1176,7 +1176,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
1176
1176
// change since the number of visible rows decreases.
1177
1177
// This can likely be removed after https://github.com/xtermjs/xterm.js/issues/291 is
1178
1178
// fixed upstream.
1179
- this . _xtermCore . viewport . _innerRefresh ( ) ;
1179
+ this . _xtermCore . viewport ? ._innerRefresh ( ) ;
1180
1180
}
1181
1181
}
1182
1182
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { IBufferCell } from 'xterm';
10
10
export type XTermAttributes = Omit < IBufferCell , 'getWidth' | 'getChars' | 'getCode' > & { clone ?( ) : XTermAttributes } ;
11
11
12
12
export interface XTermCore {
13
- viewport : {
13
+ viewport ? : {
14
14
_innerRefresh ( ) : void ;
15
15
} ;
16
16
_onKey : IEventEmitter < { key : string } > ;
You can’t perform that action at this time.
0 commit comments