From 226fa89d461f0a537e2b3fe88a1f8eebad2fdb0d Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Sun, 4 Oct 2020 17:37:28 +0900 Subject: Fix line number rendering. --- helix-view/src/view.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-view') diff --git a/helix-view/src/view.rs b/helix-view/src/view.rs index ac342d61..09cd4c65 100644 --- a/helix-view/src/view.rs +++ b/helix-view/src/view.rs @@ -53,7 +53,7 @@ impl View { #[inline] pub fn last_line(&self, viewport: Rect) -> usize { std::cmp::min( - (self.first_line + viewport.height - 1) as usize, + (self.first_line + viewport.height) as usize, self.state.doc().len_lines() - 1, ) } -- cgit v1.2.3-70-g09d2