comparison src/typval.c @ 26342:936f77929f16 v8.2.3702

patch 8.2.3702: first key in dict is seen as curly expression and fails Commit: https://github.com/vim/vim/commit/98cb90ef865089a5ddd20bc0303d449fb7d97fb2 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 30 11:56:22 2021 +0000 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 https://github.com/vim/vim/issues/9247)
author Bram Moolenaar <Bram@vim.org>
date Tue, 30 Nov 2021 13:00:06 +0100
parents 8d55e978f95b
children 65ab0b035dd8
comparison
equal deleted inserted replaced
26341:b9b685b5f8ae 26342:936f77929f16
1820 vim_str2nr(*arg, NULL, &len, skip_quotes 1820 vim_str2nr(*arg, NULL, &len, skip_quotes
1821 ? STR2NR_NO_OCT + STR2NR_QUOTE 1821 ? STR2NR_NO_OCT + STR2NR_QUOTE
1822 : STR2NR_ALL, &n, NULL, 0, TRUE); 1822 : STR2NR_ALL, &n, NULL, 0, TRUE);
1823 if (len == 0) 1823 if (len == 0)
1824 { 1824 {
1825 semsg(_(e_invalid_expression_str), *arg); 1825 if (evaluate)
1826 semsg(_(e_invalid_expression_str), *arg);
1826 return FAIL; 1827 return FAIL;
1827 } 1828 }
1828 *arg += len; 1829 *arg += len;
1829 if (evaluate) 1830 if (evaluate)
1830 { 1831 {