From 2b76b47c8a087b81be139b552d9a41bb2006dcd3 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 28 Jul 2026 12:28:27 -0300 Subject: fixing some crashes --- test/snapshots/tinywin.snap | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 test/snapshots/tinywin.snap (limited to 'test/snapshots/tinywin.snap') diff --git a/test/snapshots/tinywin.snap b/test/snapshots/tinywin.snap new file mode 100644 index 00000000..fab7f950 --- /dev/null +++ b/test/snapshots/tinywin.snap @@ -0,0 +1,31 @@ +# Shrinking the window past "one row per pane" used to panic: computeGeom gave +# every pane in a column at least one row, so `y` walked off the bottom and +# renderPane got a rect outside the surface (assert). Panes that no longer fit +# now get h = 0 and simply do not render until the window grows back. +start 30 100 +wait 8000 $ +key a-n +settle 400 +key a-n +settle 400 +key a-n +settle 400 +key a-n +stable 700 15000 +snap stacked +resize 3 60 +stable 700 10000 +snap shrunk +# ...and the same sideways: more columns than the window is wide +resize 30 100 +stable 700 10000 +key space c n +settle 600 +key space c n +settle 600 +key space c n +stable 700 15000 +snap columns +resize 30 4 +stable 700 10000 +snap narrow -- cgit v1.3