mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
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:

committed by
zeertzjq

parent
9511faa819
commit
29d5ca7d66
@@ -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);
|
||||
|
Reference in New Issue
Block a user