1
0
forked from aniani/vim

patch 8.2.1379: curly braces expression ending in " }" does not work

Problem:    Curly braces expression ending in " }" does not work.
Solution:   Skip over white space when checking for "}". (closes #6634)
This commit is contained in:
Bram Moolenaar
2020-08-06 16:38:12 +02:00
parent bbd3e3c357
commit ae95a3946b
3 changed files with 25 additions and 1 deletions

View File

@@ -817,7 +817,7 @@ eval_dict(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int literal)
{
if (eval1(&start, &tv, NULL) == FAIL) // recursive!
return FAIL;
if (*start == '}')
if (*skipwhite(start) == '}')
return NOTDONE;
}