forked from aniani/vim
patch 8.2.1771: synIDattr() cannot get the value of ctermul
Problem: synIDattr() cannot get the value of ctermul. Solution: Add the "ul" value for "what". (closes #7037)
This commit is contained in:
@@ -8604,7 +8604,9 @@ f_synIDattr(typval_T *argvars UNUSED, typval_T *rettv)
|
||||
break;
|
||||
|
||||
case 'u':
|
||||
if (STRLEN(what) <= 5 || TOLOWER_ASC(what[5]) != 'c')
|
||||
if (TOLOWER_ASC(what[1]) == 'l') // ul
|
||||
p = highlight_color(id, what, modec);
|
||||
else if (STRLEN(what) <= 5 || TOLOWER_ASC(what[5]) != 'c')
|
||||
// underline
|
||||
p = highlight_has_attr(id, HL_UNDERLINE, modec);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user