parent
2924522aea
commit
fb8e7dc25b
|
@ -293,7 +293,7 @@ fn render(&self, area: Rect, surface: &mut Surface, cx: &mut Context) {
|
|||
inner.x + 3,
|
||||
inner.y + 2 + i as u16,
|
||||
(self.format_fn)(option),
|
||||
inner.width as usize - 1,
|
||||
(inner.width as usize).saturating_sub(3), // account for the " > "
|
||||
if i == (self.cursor - offset) {
|
||||
selected
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue