Skip to content

Commit

Permalink
Always update terminal size in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Jul 31, 2022
1 parent 1ede106 commit 8d92f91
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions demo/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,8 @@ function initOptions(term: TerminalType): void {
} else {
term.options[o] = parseInt(input.value);
}
if (['cols', 'rows', 'letterSpacing', 'lineHeight'].includes(o)) {
updateTerminalSize();
}
// Always update terminal size in case the option changes the dimensions
updateTerminalSize();
});
});
Object.keys(stringOptions).forEach(o => {
Expand Down

0 comments on commit 8d92f91

Please sign in to comment.