From 27f0eaf71d3b509fd9a15e53922bbb49a81d2967 Mon Sep 17 00:00:00 2001 From: Christof Marti Date: Tue, 11 Jul 2017 15:27:41 -0700 Subject: [PATCH] Check if we still need to measure the char size (fixes #785) --- src/xterm.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xterm.js b/src/xterm.js index ab9c5320..cf777477 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -1939,6 +1939,10 @@ Terminal.prototype.resize = function(x, y) { , addToY; if (x === this.cols && y === this.rows) { + // Check if we still need to measure the char size (fixes #785). + if (!this.charMeasure.width || !this.charMeasure.height) { + this.charMeasure.measure(); + } return; }