vim-patch:9.0.0111: "nocombine" is missing from synIDattr()

Problem:    "nocombine" is missing from synIDattr().
Solution:   Add "nocombine". (Munif Tanjim, closes vim/vim#10816)
de78632c41
This commit is contained in:
Christian Clason
2022-07-30 16:11:02 +02:00
committed by zeertzjq
parent 9511faa819
commit 29d5ca7d66
3 changed files with 32 additions and 7 deletions

View File

@@ -9498,8 +9498,12 @@ static void f_synIDattr(typval_T *argvars, typval_T *rettv, FunPtr fptr)
p = highlight_has_attr(id, HL_ITALIC, modec);
}
break;
case 'n': // name
p = get_highlight_name_ext(NULL, id - 1, false);
case 'n':
if (TOLOWER_ASC(what[1]) == 'o') { // nocombine
p = highlight_has_attr(id, HL_NOCOMBINE, modec);
} else { // name
p = get_highlight_name_ext(NULL, id - 1, false);
}
break;
case 'r': // reverse
p = highlight_has_attr(id, HL_INVERSE, modec);