diff options
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/ui/picker.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index 722ad9ca..82543bc5 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -293,7 +293,7 @@ impl<T: 'static> Component for Picker<T> { 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 { |