mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 10:56:19 +04:00
d6c8e0c946
Virtual text lines (either caused by softwrapped inlay hints that take multiple or line annotations) currently block scrolling downwards. if the visual offset passed to char_idx_at_visual_offset or visual_offset_from_block is within a virtual text line then the char position before the virtual text and a visual offset are returned. We previously ignored that visual offset and as a result the cursor would be stuck at the start of the virtual text. This commit fixes that by simply moving the cursor to the next char (so past the virtual text) if this visual offset is non-zero |
||
---|---|---|
.. | ||
commands | ||
keymap | ||
ui | ||
application.rs | ||
args.rs | ||
commands.rs | ||
compositor.rs | ||
config.rs | ||
health.rs | ||
job.rs | ||
keymap.rs | ||
lib.rs | ||
main.rs |