patch 8.2.3702: first key in dict is seen as curly expression and fails
Problem: First key in dict is seen as curly expression and fails.
Solution: Ignore failure of curly expression. (closes #9247)
diff --git a/src/typval.c b/src/typval.c
index c859122..fb945cb 100644
--- a/src/typval.c
+++ b/src/typval.c
@@ -1822,7 +1822,8 @@
: STR2NR_ALL, &n, NULL, 0, TRUE);
if (len == 0)
{
- semsg(_(e_invalid_expression_str), *arg);
+ if (evaluate)
+ semsg(_(e_invalid_expression_str), *arg);
return FAIL;
}
*arg += len;