aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2024-05-26 10:27:12 -0700
committerGitHub <noreply@github.com>2024-05-26 10:27:12 -0700
commiteb37241d38ad35b9e6bfac6379dd10e60aa0350c (patch)
tree8053934aee3aac93bf1a9bd33d9c135bae677a2c /runtime/lua/vim
parentdd54e81551bd063a1ece46eba64c5ed45f172476 (diff)
downloadrneovim-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')
0 files changed, 0 insertions, 0 deletions