Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
Fix #873 (#892)
Browse files Browse the repository at this point in the history
  • Loading branch information
Animus-Surge authored Nov 15, 2020
1 parent 6da52a8 commit c944d75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/classes/terminal.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,11 @@ class Terminal {
case "Resize":
let cols = args[1];
let rows = args[2];
this.tty.resize(Number(cols), Number(rows));
try {
this.tty.resize(Number(cols), Number(rows));
} catch (error) {
//Keep going, it'll work anyways.
}
this.onresized(cols, rows);
break;
default:
Expand Down

0 comments on commit c944d75

Please sign in to comment.