Skip to content

Commit 9dd3cf3

Browse files
committed
fix crashes for multiline textboxes
for zero width or height terminals
1 parent ab75103 commit 9dd3cf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/textinput.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ impl DrawableComponent for TextInputComponent {
634634

635635
ui::rect_inside(
636636
Size::new(10, 3),
637-
Size::new(f.area().width, 3),
637+
f.area().into(),
638638
area,
639639
)
640640
};

0 commit comments

Comments
 (0)