Skip to content

Commit

Permalink
Merge pull request #2435 from Tyriar/r4_0_2433
Browse files Browse the repository at this point in the history
Fix NPE when open called twice (release/4.0)
  • Loading branch information
Tyriar authored Sep 23, 2019
2 parents 217ed05 + b28be87 commit ac69ef5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -604,8 +604,8 @@ export class Terminal extends Disposable implements ITerminal, IDisposable, IInp
// Performance: Add viewport and helper elements from the fragment
this.element.appendChild(fragment);

this._theme = this.options.theme;
this.options.theme = null;
this._theme = this.options.theme || this._theme;
this.options.theme = undefined;
this._colorManager = new ColorManager(document, this.options.allowTransparency);
this._colorManager.setTheme(this._theme);

Expand Down

0 comments on commit ac69ef5

Please sign in to comment.