helix/helix-core/src
Pascal Kuthe 2af14a24ab respect line annotations in char_idx_at_visual_row_offset
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.
2023-03-27 09:54:40 +09:00
..
doc_formatter Feat: LSP Type Hints (#5934) 2023-03-11 11:32:14 +09:00
increment Fix new clippy lints (#5892) 2023-02-09 16:27:08 -06:00
auto_pairs.rs Fix erroneous indent between closers of auto-pairs (#5330) 2022-12-29 09:23:40 -06:00
chars.rs Temporarily turn on unicode-lines 2022-03-17 10:53:50 +09:00
comment.rs Prevent a panic when uncommenting a line with only a comment token (#5933) 2023-02-12 13:13:22 -06:00
config.rs Add support for local language configuration (#1249) 2022-04-18 12:10:51 +09:00
diagnostic.rs Feat: LSP Type Hints (#5934) 2023-03-11 11:32:14 +09:00
diff.rs delete outdated reference to cessen/ropey#25 (#4928) 2022-11-28 19:07:47 -06:00
doc_formatter.rs rework positioning/rendering and enable softwrap/virtual text (#5420) 2023-02-01 02:03:19 +09:00
graphemes.rs rework positioning/rendering and enable softwrap/virtual text (#5420) 2023-02-01 02:03:19 +09:00
history.rs Fix transaction composition order in History::changes_since (#4981) 2022-12-03 12:09:08 +09:00
indent.rs Fix indentation level calculation for lines mixing tabs and spaces (#6278) 2023-03-12 12:12:06 -05:00
lib.rs fix view anchors not at start of a visual line 2023-03-27 09:54:40 +09:00
line_ending.rs properly handle LSP position encoding (#5711) 2023-02-09 16:19:29 +09:00
macros.rs Split parts of helix-term into helix-view. 2020-09-21 18:24:16 +09:00
match_brackets.rs Fix match brackets comment (#1346) 2021-12-24 07:27:31 +05:30
movement.rs fix test::plain 2023-03-20 18:34:40 -05:00
object.rs Fix edge-case in tree-sitter expand_selection selection command (#2877) 2022-06-25 13:12:30 -05:00
path.rs Add workspace and document diagnostics picker (#2013) 2022-06-30 18:16:18 +09:00
position.rs respect line annotations in char_idx_at_visual_row_offset 2023-03-27 09:54:40 +09:00
register.rs Refactor blackhole register (#4504) 2022-11-15 23:14:18 +09:00
search.rs Jump to the next number on the line before incrementing (#1778) 2022-04-01 22:14:37 +09:00
selection.rs Add IntoIterator implementation for Selection 2023-03-10 16:54:17 +09:00
shellwords.rs Fix utf8 length handling for shellwords (#5738) 2023-02-01 16:07:42 -06:00
surround.rs Add test cases for existing pair matching logic. (#6027) 2023-03-08 11:10:55 +09:00
syntax.rs build(deps): bump bitflags from 1.3.2 to 2.0.2 (#6387) 2023-03-22 08:12:08 +08:00
test.rs fix test::plain 2023-03-20 18:34:40 -05:00
text_annotations.rs use partition_point instead of binary_search_by 2023-03-27 09:54:40 +09:00
textobject.rs fix test::plain 2023-03-20 18:34:40 -05:00
transaction.rs Add API to create a Transaction from potentially overlapping changes 2023-03-10 16:54:17 +09:00
wrap.rs Softwrapping improvements (#5893) 2023-03-08 11:02:11 +09:00