From 8d92f91029b3dbe85efbce2231c589f21ad550a6 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Sun, 31 Jul 2022 12:19:39 -0700 Subject: [PATCH] Always update terminal size in demo --- demo/client.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/demo/client.ts b/demo/client.ts index 85355dae..0f35b251 100644 --- a/demo/client.ts +++ b/demo/client.ts @@ -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 => {