Skip to content

Commit

Permalink
Factor display offset into displaying cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
melody-rs committed Mar 23, 2024
1 parent 06ba90b commit 93743b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/term/src/widget/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ where
}

let cursor = galley.from_rcursor(egui::epaint::text::cursor::RCursor {
row: cursor_point.line.0 as usize,
row: cursor_point.line.0 as usize + display_offset,
column: cursor_point.column.0,
});

Expand Down

0 comments on commit 93743b3

Please sign in to comment.