forked from Mirrors/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2af14a24ab
char_idx_at_visual_row_offset asssumed that a single line/block break always corresponded to a vertical offset of 1. However conceal can hide the line break (in which case the certical offset would be 0) and line annotations (or softwrapped inlay hints at the end of the line) can insert addtional vertical lines. To correctly account for these cases we simply compute the visual offset of the start of the next block from the previous block instead of the visual offset of the block end. This means that the line breaks at the end of the block (however many there may be) are automatically included and we don't need to manually add 1 to the `row_offset` anymore. |
2 years ago | |
---|---|---|
.. | ||
doc_formatter | 2 years ago | |
increment | 2 years ago | |
auto_pairs.rs | 2 years ago | |
chars.rs | 3 years ago | |
comment.rs | 2 years ago | |
config.rs | 3 years ago | |
diagnostic.rs | 2 years ago | |
diff.rs | 2 years ago | |
doc_formatter.rs | 2 years ago | |
graphemes.rs | 2 years ago | |
history.rs | 2 years ago | |
indent.rs | 2 years ago | |
lib.rs | 2 years ago | |
line_ending.rs | 2 years ago | |
macros.rs | 4 years ago | |
match_brackets.rs | 3 years ago | |
movement.rs | 2 years ago | |
object.rs | 2 years ago | |
path.rs | 2 years ago | |
position.rs | 2 years ago | |
register.rs | 2 years ago | |
search.rs | 3 years ago | |
selection.rs | 2 years ago | |
shellwords.rs | 2 years ago | |
surround.rs | 2 years ago | |
syntax.rs | 2 years ago | |
test.rs | 2 years ago | |
text_annotations.rs | 2 years ago | |
textobject.rs | 2 years ago | |
transaction.rs | 2 years ago | |
wrap.rs | 2 years ago |