diff options
Diffstat (limited to 'helix-term/src/ui/picker.rs')
-rw-r--r-- | helix-term/src/ui/picker.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index 090ba242..84b8dd72 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -124,6 +124,7 @@ impl<T: 'static> Component for FilePicker<T> { }) { // align to middle let first_line = line + .map(|(s, e)| (s.min(doc.text().len_lines()), e.min(doc.text().len_lines()))) .map(|(start, _)| start) .unwrap_or(0) .saturating_sub(inner.height as usize / 2); |