Skip to content

Commit

Permalink
Merge pull request #784 from chrmarti/chrmarti/20505
Browse files Browse the repository at this point in the history
Check if we still need to measure the char size
  • Loading branch information
parisk authored Jul 12, 2017
2 parents 86c5aa0 + 27f0eaf commit 01453e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xterm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 01453e9

Please sign in to comment.