diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-01-22 06:25:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 06:25:06 +0800 |
commit | 215244f74950d6099863fcf5e59213431f59d40f (patch) | |
tree | b761dfa4602ade56286acaf87615635f06b9e83b /src | |
parent | 3f188bc533bc22f1d13dce33ab5d63973c3ff22a (diff) | |
download | rneovim-215244f74950d6099863fcf5e59213431f59d40f.tar.gz rneovim-215244f74950d6099863fcf5e59213431f59d40f.tar.bz2 rneovim-215244f74950d6099863fcf5e59213431f59d40f.zip |
fix(extmarks): missing "spell" and "conceal" in details (#27116)
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/decoration.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/nvim/decoration.c b/src/nvim/decoration.c index 7cce6b3ad1..5224a07fd9 100644 --- a/src/nvim/decoration.c +++ b/src/nvim/decoration.c @@ -975,19 +975,19 @@ void decor_to_dict_legacy(Dictionary *dict, DecorInline decor, bool hl_name) if (sh_hl.hl_id) { PUT(*dict, "hl_group", hl_group_name(sh_hl.hl_id, hl_name)); PUT(*dict, "hl_eol", BOOLEAN_OBJ(sh_hl.flags & kSHHlEol)); - if (sh_hl.flags & kSHConceal) { - char buf[MAX_SCHAR_SIZE]; - schar_get(buf, sh_hl.text[0]); - PUT(*dict, "conceal", CSTR_TO_OBJ(buf)); - } + priority = sh_hl.priority; + } - if (sh_hl.flags & kSHSpellOn) { - PUT(*dict, "spell", BOOLEAN_OBJ(true)); - } else if (sh_hl.flags & kSHSpellOff) { - PUT(*dict, "spell", BOOLEAN_OBJ(false)); - } + if (sh_hl.flags & kSHConceal) { + char buf[MAX_SCHAR_SIZE]; + schar_get(buf, sh_hl.text[0]); + PUT(*dict, "conceal", CSTR_TO_OBJ(buf)); + } - priority = sh_hl.priority; + if (sh_hl.flags & kSHSpellOn) { + PUT(*dict, "spell", BOOLEAN_OBJ(true)); + } else if (sh_hl.flags & kSHSpellOff) { + PUT(*dict, "spell", BOOLEAN_OBJ(false)); } if (sh_hl.flags & kSHUIWatched) { |