From cd0b836c62f16a8e91852568bd081718958e64f1 Mon Sep 17 00:00:00 2001 From: cpacker Date: Sat, 25 Oct 2025 13:52:27 -0700 Subject: [PATCH] fix: resize on enlarge --- src/cli/App.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cli/App.tsx b/src/cli/App.tsx index 7cce10f..ecf9de6 100644 --- a/src/cli/App.tsx +++ b/src/cli/App.tsx @@ -143,6 +143,8 @@ export default function App({ const [staticRenderEpoch, setStaticRenderEpoch] = useState(0); useEffect(() => { const prev = prevColumnsRef.current; + if (columns === prev) return; + if ( columns < prev && typeof process !== "undefined" && @@ -151,8 +153,9 @@ export default function App({ process.stdout.isTTY ) { process.stdout.write(CLEAR_SCREEN_AND_HOME); - setStaticRenderEpoch((epoch) => epoch + 1); } + + setStaticRenderEpoch((epoch) => epoch + 1); prevColumnsRef.current = columns; }, [columns]);