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 vim/vim#6634)
ae95a3946b
This commit is contained in:
Jan Edmund Lazo
2020-08-07 21:58:54 -04:00
parent afa5b04d00
commit bc2c75cbd7
2 changed files with 25 additions and 1 deletions

View File

@@ -5365,7 +5365,7 @@ static int dict_get_tv(char_u **arg, typval_T *rettv, int evaluate)
if (eval1(&start, &tv, false) == FAIL) { // recursive!
return FAIL;
}
if (*start == '}') {
if (*skipwhite(start) == '}') {
return NOTDONE;
}
}