Give terminal panes the height of their box

With no height of its own the embedded terminal starts at 24 rows and
can't shrink. In a shorter box the program was told 24 rows and drew the
bottom ones out of sight, losing vim's status and command lines. Let it
shrink, so its size is always the box's.
This commit is contained in:
callumalpass committed 2026-11-04 08:03:16 +11:00
1 parent 2845b6fe2b
commit 44bfa6e740
2 files changed
+19

No files matched your search

+2
View File
@@ -88,6 +88,8 @@ export function TerminalPane(props: {
<embeddedTerminal
ref={terminal}
flexGrow={1}
// Without a height of its own it starts at 24 rows, which can't shrink: a shorter box would clip it, and the program would draw rows nobody sees.
flexShrink={1}
minHeight={0}
width="100%"
onTerminalResize={function (this: EmbeddedTerminalRenderable, cols: number, rows: number) {