fix: completion width

This commit is contained in:
XOR-op 2023-11-09 12:38:26 -05:00
parent 1bbb323509
commit 7f0f6afafb

View file

@ -38,7 +38,7 @@ impl<'a> Widget for Completion<'a> {
let input_area = self.cx.area(&self.cx.input.position);
let mut area = self.cx.area(&Position::Sticky(
Rect { x: 1, y: 0, width: 20, height: items.len() as u16 + 2 },
Rect { x: 1, y: 0, width: input_area.width - 2, height: items.len() as u16 + 2 },
input_area,
));