Skip to content

Commit

Permalink
fix crashes for multiline textboxes
Browse files Browse the repository at this point in the history
for zero width or height terminals
  • Loading branch information
extrawurst committed Sep 17, 2024
1 parent ab75103 commit 9dd3cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/textinput.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
};
Expand Down

0 comments on commit 9dd3cf3

Please sign in to comment.