diff options
author | Pascal Kuthe | 2023-03-22 15:30:51 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-03-27 00:54:40 +0000 |
commit | d6c8e0c946d768abdb2d688cb7cd67683ac51240 (patch) | |
tree | 91845673805c9109a685a1ab11fe8f85af57d135 /runtime/queries/yaml | |
parent | 7cf448eb5bfd604e1342a1d0f5685e3231f6c1a9 (diff) |
allow scrolling past virtual text line
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
Diffstat (limited to 'runtime/queries/yaml')
0 files changed, 0 insertions, 0 deletions