diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-10 18:11:43 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-10 18:11:43 +0100 |
commit | 70c41241c2701f26a99085e433925a206ca265a3 (patch) | |
tree | 1afeaeb49dfc47199313bf397955519a5f598572 /src/typval.c | |
parent | df6e0e46c55c9c6d788f94482a8858c0f31391f4 (diff) |
patch 8.2.4934: string interpolation fails when not evaluatingv8.2.4934
Problem: String interpolation fails when not evaluating.
Solution: Skip the expression when not evaluating. (closes #10398)
Diffstat (limited to 'src/typval.c')
-rw-r--r-- | src/typval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/typval.c b/src/typval.c index 09dc474935..a266330622 100644 --- a/src/typval.c +++ b/src/typval.c @@ -2363,7 +2363,7 @@ eval_interp_string(char_u **arg, typval_T *rettv, int evaluate) ++*arg; break; } - p = eval_one_expr_in_str(*arg, &ga); + p = eval_one_expr_in_str(*arg, &ga, evaluate); if (p == NULL) { ret = FAIL; |