diff options
author | Blaž Hrastnik | 2020-10-06 08:32:30 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2020-10-07 05:03:38 +0000 |
commit | 7f07e6676801be72e5a58b5612893c7d16f94a64 (patch) | |
tree | 18cc823d2a5dfd0b09b5802f6eb11c978080df36 /helix-term/src | |
parent | 5392b4826856e5e50653587ed5a13aef86805401 (diff) |
Cleanup: track first_line as usize.
Diffstat (limited to 'helix-term/src')
-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 acb742b2..09d66c5a 100644 --- a/helix-term/src/editor.rs +++ b/helix-term/src/editor.rs @@ -219,7 +219,7 @@ impl Editor { } let style: Style = view.theme.get("ui.linenr"); - for (i, line) in (view.first_line..(last_line as u16)).enumerate() { + for (i, line) in (view.first_line..last_line).enumerate() { self.surface .set_stringn(0, i as u16, format!("{:>5}", line + 1), 5, style); // lavender |