diff options
author | Canop <cano.petrole@gmail.com> | 2023-01-03 19:47:06 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2023-01-03 19:47:06 +0100 |
commit | c641b27f7f47d9e66c6426fa605cb79841494c7b (patch) | |
tree | b35aadfd8be88a807d3ab70f1c08c982dfe8470a /src/syntactic/syntactic_view.rs | |
parent | 428205c11213b3c830984b58ab8cc9f7aa41a7d8 (diff) |
version 1.19.0v1.19.0
Diffstat (limited to 'src/syntactic/syntactic_view.rs')
-rw-r--r-- | src/syntactic/syntactic_view.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syntactic/syntactic_view.rs b/src/syntactic/syntactic_view.rs index 098d9fb..ad42fa6 100644 --- a/src/syntactic/syntactic_view.rs +++ b/src/syntactic/syntactic_view.rs @@ -332,7 +332,7 @@ impl SyntacticView { for y in 0..line_count { w.queue(cursor::MoveTo(area.left, y as u16 + area.top))?; let mut cw = CropWriter::new(w, code_width); - let line_idx = self.scroll as usize + y; + let line_idx = self.scroll + y; let selected = self.selection_idx == Some(line_idx); let bg = if selected { selection_bg } else { normal_bg }; let mut op_mmap: Option<Mmap> = None; |