patch 8.2.0867: using \{xxx} for encoding a modifier is not nice
Problem: Using \{xxx} for encoding a modifier is not nice.
Solution: Use \<*xxx> instead, since it's the same as \<xxx> but producing a
different code.
diff --git a/src/typval.c b/src/typval.c
index 95b2792..23530a5 100644
--- a/src/typval.c
+++ b/src/typval.c
@@ -1285,16 +1285,13 @@
++name;
break;
- // Special key, e.g.: "\<C-W>" or "\{C-W}"
+ // Special key, e.g.: "\<C-W>"
case '<':
- case '{':
{
int flags = FSK_KEYCODE | FSK_IN_STRING;
- if (*p == '<')
+ if (p[1] != '*')
flags |= FSK_SIMPLIFY;
- else
- flags |= FSK_CURLY;
extra = trans_special(&p, name, flags, NULL);
if (extra != 0)
{