Hold on to renderer if a reset occurs

This commit is contained in:
Daniel Imms
2017-02-01 11:19:54 -08:00
parent 20f22fb658
commit cc78fdd63c
+2 -1
View File
@@ -208,7 +208,8 @@ function Terminal(options) {
this.inputHandler = new InputHandler(this);
this.parser = new Parser(this.inputHandler, this);
this.renderer = null;
// Reuse renderer if the Terminal is being recreated via a Terminal.reset call.
this.renderer = this.renderer || null;
// user input states
this.writeBuffer = [];