Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 475ea74

Browse files
committed
fix(plugins/plugin-client-common): pty commands fail in minisplits
Fixes #5267
1 parent bc59bcf commit 475ea74

File tree

1 file changed

+1
-1
lines changed
  • plugins/plugin-client-common/src/components/Views/Terminal

1 file changed

+1
-1
lines changed

plugins/plugin-client-common/src/components/Views/Terminal/getSize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function getSize(this: HTMLElement): { width: number; height: num
3939

4040
const selectorForContext = '.repl-block .repl-context'
4141
const contextElement = this.querySelector(selectorForContext)
42-
const { width: contextWidth } = contextElement.getBoundingClientRect()
42+
const { width: contextWidth } = contextElement ? contextElement.getBoundingClientRect() : { width: 0 }
4343

4444
const width = enclosingRect.width - paddingHorizontal(widthPadElement) - contextWidth
4545
const height = enclosingRect.height - paddingVertical(this /* heightPadElement */)

0 commit comments

Comments
 (0)