]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Check if we still need to measure the char size (fixes #785)
authorChristof Marti <chrmarti@microsoft.com>
Tue, 11 Jul 2017 22:27:41 +0000 (15:27 -0700)
committerChristof Marti <chrmarti@microsoft.com>
Tue, 11 Jul 2017 22:48:08 +0000 (15:48 -0700)
src/xterm.js

index ab9c53208c6ba25fc6385b1a8fe48f45c1255306..cf77747775b9167d82d3ae69c79ecd8f7d551e8a 100644 (file)
@@ -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;
   }