diff options
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; |