aboutsummaryrefslogtreecommitdiff
path: root/main.ha
diff options
context:
space:
mode:
Diffstat (limited to 'main.ha')
-rw-r--r--main.ha7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.ha b/main.ha
index bff260e..51c9b8a 100644
--- a/main.ha
+++ b/main.ha
@@ -28,8 +28,15 @@ fn sighandler(sig: int, info: *signal::siginfo, ucontext: *void) void = {
} else {
yield len(u.list.items);
};
+ const oldsz = list::ttysize {
+ rows = u.list.sz.rows,
+ cols = u.list.sz.cols,
+ };
u.list.sz.rows = rows: u16;
u.list.sz.cols = sz.columns;
+ list::resize(u.list, oldsz);
+ libui::clear(u.list.widget.ui);
+ list::print(u.list)!;
};
};