From 838c11b69c1f7f610eed426035b7dfe391803e87 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Mon, 4 Jul 2016 13:16:34 -0700 Subject: [PATCH] Have ' ' chars get inserted correctly after a resize Since the character spec didn't contain a character width it was being skipped during refresh. Fixes #159 --- src/xterm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xterm.js b/src/xterm.js index 77040281..35b44a49 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -2828,7 +2828,7 @@ // resize cols j = this.cols; if (j < x) { - ch = [this.defAttr, ' ']; // does xterm use the default attr? + ch = [this.defAttr, ' ', 1]; // does xterm use the default attr? i = this.lines.length; while (i--) { while (this.lines[i].length < x) {