diff options
author | Riley Bruins <ribru17@hotmail.com> | 2024-05-26 10:27:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-26 10:27:12 -0700 |
commit | eb37241d38ad35b9e6bfac6379dd10e60aa0350c (patch) | |
tree | 8053934aee3aac93bf1a9bd33d9c135bae677a2c /runtime/lua/vim/treesitter | |
parent | dd54e81551bd063a1ece46eba64c5ed45f172476 (diff) | |
download | rneovim-eb37241d38ad35b9e6bfac6379dd10e60aa0350c.tar.gz rneovim-eb37241d38ad35b9e6bfac6379dd10e60aa0350c.tar.bz2 rneovim-eb37241d38ad35b9e6bfac6379dd10e60aa0350c.zip |
fix(tohtml): properly handle multiple hl groups #29012
Problem: :TOhtml doesn't properly handle virtual text when it has
multiple highlight groups. It also improperly calculates position offset
for multi-byte virt_text characters.
Solution: Apply the `vim.api.nvim_strwidth` broadly to properly
calculate character offset, and handle the cases where the `hl` argument
can be a table of multiple hl groups.
Diffstat (limited to 'runtime/lua/vim/treesitter')
0 files changed, 0 insertions, 0 deletions