diff options
author | Blaž Hrastnik | 2020-10-04 08:37:28 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2020-10-04 08:37:47 +0000 |
commit | 226fa89d461f0a537e2b3fe88a1f8eebad2fdb0d (patch) | |
tree | e028486e88c4fe7fb50df125a133470f5f58a4d1 /helix-view/src | |
parent | 883b77bd246433ab221f16ee7be53ced9beb7c29 (diff) |
Fix line number rendering.
Diffstat (limited to 'helix-view/src')
-rw-r--r-- | helix-view/src/view.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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, ) } |