aboutsummaryrefslogtreecommitdiff
path: root/scripts/lintcommit.lua
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2026-04-12 20:38:35 +0800
committerGitHub <noreply@github.com>2026-04-12 08:38:35 -0400
commit49086862fc521c29dd8fb7c96cc23a267f1bf397 (patch)
tree40f1f7df7f7a0c437ce25fede51e5f2cd0776063 /scripts/lintcommit.lua
parent2f6c560002f11c5d6e60b1eeeb6896dbc50d48bd (diff)
downloadrneovim-49086862fc521c29dd8fb7c96cc23a267f1bf397.tar.gz
rneovim-49086862fc521c29dd8fb7c96cc23a267f1bf397.tar.bz2
rneovim-49086862fc521c29dd8fb7c96cc23a267f1bf397.zip
fix(api): nvim_get_hl drops groups defined with link_global #38492
Problem: hlgroup2dict passes &ns_id to ns_get_hl twice. The first call (link=true) sets *ns_hl = 0 when link_global is set, so the second call and the sg_cleared guard both see ns_id == 0 and bail out. The group is silently dropped from the result. Solution: use a temporary copy of ns_id for each ns_get_hl call so the original value is preserved.
Diffstat (limited to 'scripts/lintcommit.lua')
0 files changed, 0 insertions, 0 deletions