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-term/src/editor.rs | |
parent | 883b77bd246433ab221f16ee7be53ced9beb7c29 (diff) |
Fix line number rendering.
Diffstat (limited to 'helix-term/src/editor.rs')
-rw-r--r-- | helix-term/src/editor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/editor.rs b/helix-term/src/editor.rs index 4386834a..a348aa6e 100644 --- a/helix-term/src/editor.rs +++ b/helix-term/src/editor.rs @@ -221,7 +221,7 @@ impl Editor { let style: Style = view.theme.get("ui.linenr"); for (i, line) in (view.first_line..(last_line as u16)).enumerate() { self.surface - .set_stringn(0, line, format!("{:>5}", i + 1), 5, style); + .set_stringn(0, i as u16, format!("{:>5}", line + 1), 5, style); // lavender } |