Skip to content

Commit

Permalink
Fix setTheme NPE in 3.14
Browse files Browse the repository at this point in the history
Fixes #2220
  • Loading branch information
Tyriar committed Jul 10, 2019
1 parent 0734e97 commit c97972b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,9 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II
*/
private _setTheme(theme: ITheme): void {
this._theme = theme;
this._colorManager.setTheme(theme);
if (this._colorManager) {
this._colorManager.setTheme(theme);
}
if (this._renderCoordinator) {
this._renderCoordinator.setColors(this._colorManager.colors);
}
Expand Down

0 comments on commit c97972b

Please sign in to comment.