Mercurial > vim
diff src/eval.c @ 208:f922db5a1fb3
updated for version 7.0060
author | vimboss |
---|---|
date | Tue, 15 Mar 2005 22:50:43 +0000 |
parents | 300fac7c5a2b |
children | 0d6554dfc71e |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -13024,8 +13024,13 @@ f_synIDattr(argvars, rettv) p = highlight_has_attr(id, HL_STANDOUT, modec); break; - case 'u': /* underline */ - p = highlight_has_attr(id, HL_UNDERLINE, modec); + case 'u': + if (STRLEN(what) <= 5 || TOLOWER_ASC(what[5]) != 'c') + /* underline */ + p = highlight_has_attr(id, HL_UNDERLINE, modec); + else + /* undercurl */ + p = highlight_has_attr(id, HL_UNDERCURL, modec); break; }