mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Hold on to renderer if a reset occurs
This commit is contained in:
+2
-1
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user