File: src/layout.zig:125
Severity: MEDIUM
Status: ✅ FIXED — moved node allocations before pane.resizeTerminal in Layout.splitPane so allocation failure leaves parent pane dimensions intact. Added unit test.
Layout.splitPane calls try pane.resizeTerminal(child_w1, child_h1); before creating the layout nodes Split and Node. If subsequent allocations fail, the errdefer block cleans up new_pane but leaves pane shrunk to child_w1, child_h1.
Fix: Defer pane.resizeTerminal(child_w1, child_h1) until all node allocations succeed, or add an errdefer to restore pane.resizeTerminal(parent_w, parent_h).