diff options
Diffstat (limited to 'helix-view/src/lib.rs')
-rw-r--r-- | helix-view/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/lib.rs b/helix-view/src/lib.rs index 52044ac7..4c32b356 100644 --- a/helix-view/src/lib.rs +++ b/helix-view/src/lib.rs @@ -55,7 +55,7 @@ pub fn align_view(doc: &Document, view: &mut View, align: Align) { .cursor(doc.text().slice(..)); let line = doc.text().char_to_line(pos); - let last_line_height = view.inner_area().height.saturating_sub(1) as usize; + let last_line_height = view.inner_height().saturating_sub(1); let relative = match align { Align::Center => last_line_height / 2, |