From 9dd3cf30e1df79fd8e534ab509b777db70efc25d Mon Sep 17 00:00:00 2001 From: extrawurst Date: Tue, 17 Sep 2024 20:48:04 +0200 Subject: [PATCH] fix crashes for multiline textboxes for zero width or height terminals --- src/components/textinput.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/textinput.rs b/src/components/textinput.rs index 8c9224ac0c..e6586b8355 100644 --- a/src/components/textinput.rs +++ b/src/components/textinput.rs @@ -634,7 +634,7 @@ impl DrawableComponent for TextInputComponent { ui::rect_inside( Size::new(10, 3), - Size::new(f.area().width, 3), + f.area().into(), area, ) };