diff options
author | Johannes Larsen <mail@johslarsen.net> | 2025-02-02 12:00:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-02 03:00:05 -0800 |
commit | e08e3d15f66db3fba9f164f0c18b71d72ffb4877 (patch) | |
tree | 8b5720ea75afddb6d4b7f60b0e12f859a7f475ca /runtime/lua/vim/diagnostic.lua | |
parent | 3e882bf81c5f0761b98d29a6c986026d5962e5f7 (diff) | |
download | rneovim-e08e3d15f66db3fba9f164f0c18b71d72ffb4877.tar.gz rneovim-e08e3d15f66db3fba9f164f0c18b71d72ffb4877.tar.bz2 rneovim-e08e3d15f66db3fba9f164f0c18b71d72ffb4877.zip |
fix(man.lua): skip `Attrs.None` highlights #32262
Before the 7121983c45d92349a6532f32dcde9f425e30781e refactoring this
loop added highlights from a `buf_hls` list that had filtered out
elements with `Attrs.None`. After the refactoring this added highlights
from `hls` directly, and those elements would fail with e.g.:
$ nvim 'man://math.h(0)'
Error detected while processing command line:
Error executing Lua callback: /usr/share/nvim/runtime/lua/man.lua:205: Invalid 'hl_group': Expected Lua string
stack traceback:
[C]: in function 'nvim_buf_add_highlight'
/usr/share/nvim/runtime/lua/man.lua:205: in function 'highlight_man_page'
/usr/share/nvim/runtime/lua/man.lua:632: in function 'init_pager'
/usr/share/nvim/runtime/plugin/man.lua:9: in function </usr/share/nvim/runtime/plugin/man.lua:6>
Diffstat (limited to 'runtime/lua/vim/diagnostic.lua')
0 files changed, 0 insertions, 0 deletions