diff options
Diffstat (limited to 'packages/desktop/src/components')
| -rw-r--r-- | packages/desktop/src/components/terminal.tsx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/packages/desktop/src/components/terminal.tsx b/packages/desktop/src/components/terminal.tsx index f7b44b0aa..aaf5da880 100644 --- a/packages/desktop/src/components/terminal.tsx +++ b/packages/desktop/src/components/terminal.tsx @@ -52,19 +52,14 @@ export const Terminal = (props: TerminalProps) => { term.open(container) if (local.pty.buffer) { - const originalSize = { cols: term.cols, rows: term.rows } - let resized = false if (local.pty.rows && local.pty.cols) { term.resize(local.pty.cols, local.pty.rows) - resized = true } + term.reset() term.write(local.pty.buffer) if (local.pty.scrollY) { term.scrollToLine(local.pty.scrollY) } - if (resized) { - term.resize(originalSize.cols, originalSize.rows) - } } container.focus() |
