eval: port v:collate

Cherry-picked from patch v8.2.0988. Required for patch v8.2.1933.
This commit is contained in:
Sean Dewar
2021-04-20 00:01:50 +01:00
parent 96f62394cf
commit 1d72b6e4cd
7 changed files with 55 additions and 7 deletions

View File

@@ -3642,7 +3642,8 @@ const char * set_one_cmd_context(
} else {
if (strncmp(arg, "messages", p - arg) == 0
|| strncmp(arg, "ctype", p - arg) == 0
|| strncmp(arg, "time", p - arg) == 0) {
|| strncmp(arg, "time", p - arg) == 0
|| strncmp(arg, "collate", p - arg) == 0) {
xp->xp_context = EXPAND_LOCALES;
xp->xp_pattern = skipwhite((const char_u *)p);
} else {