aboutsummaryrefslogtreecommitdiff
path: root/scripts/lintcommit.lua
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2026-03-28 15:26:46 +0800
committerGitHub <noreply@github.com>2026-03-28 15:26:46 +0800
commit9383a096eb7eef0693505508a0414dd3ff2221eb (patch)
tree2fb91defd21e90313e6f5f57d15e5966c5c78b44 /scripts/lintcommit.lua
parentf027f41e2cfba7be8c4841cb1a036827375bbd73 (diff)
downloadrneovim-9383a096eb7eef0693505508a0414dd3ff2221eb.tar.gz
rneovim-9383a096eb7eef0693505508a0414dd3ff2221eb.tar.bz2
rneovim-9383a096eb7eef0693505508a0414dd3ff2221eb.zip
fix(api): nvim_set_hl boolean false corrupts underline styles (#38504)
Problem: setting one underline style to false clears bits belonging to another style. `{underdouble = true, underdashed = false}` results in undercurl because CHECK_FLAG_WITH_KEY does `m &= ~flag` which doesn't work for multi-bit encoded values sharing HL_UNDERLINE_MASK. Solution: use a local variable to derive the correct clear mask from the flag. Clear the whole HL_UNDERLINE_MASK field instead of individual bits, and only clear on false when the current style actually matches.
Diffstat (limited to 'scripts/lintcommit.lua')
0 files changed, 0 insertions, 0 deletions