Check if we still need to measure the char size (fixes #785)

This commit is contained in:
Christof Marti
2017-07-11 15:48:08 -07:00
parent 86c5aa023f
commit 27f0eaf71d
+4
View 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;
}