diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index 722ad9cac..82543bc5e 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -293,7 +293,7 @@ impl Component for Picker { 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 {