summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c
index 42556b5372..52d0a14ff7 100644
--- 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;
}