Skip to content

Commit

Permalink
correctly track char_pos for virtual text
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalkuthe committed Jan 15, 2023
1 parent 4a7d5a8 commit 62ef0bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-core/src/doc_formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ impl<'t> DocumentFormatter<'t> {
annotations,
visual_pos: Position { row: 0, col: 0 },
graphemes: RopeGraphemes::new(text.slice(block_char_idx..)),
char_pos: 0,
char_pos: block_char_idx,
exhausted: false,
virtual_lines: 0,
indent_level: None,
Expand Down

0 comments on commit 62ef0bc

Please sign in to comment.