diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-15 18:19:47 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-15 19:01:19 +0800 |
commit | 29efd54e0284727a7dde5608e5eedaef9c00c65f (patch) | |
tree | 554379340ed6b2f2383f72acde55388d58fa4c1f /src/nvim/eval.c | |
parent | ef9af89da753235c64cbd8b7d700c686bc94dad7 (diff) | |
download | rneovim-29efd54e0284727a7dde5608e5eedaef9c00c65f.tar.gz rneovim-29efd54e0284727a7dde5608e5eedaef9c00c65f.tar.bz2 rneovim-29efd54e0284727a7dde5608e5eedaef9c00c65f.zip |
vim-patch:8.2.4934: string interpolation fails when not evaluating
Problem: String interpolation fails when not evaluating.
Solution: Skip the expression when not evaluating. (closes vim/vim#10398)
https://github.com/vim/vim/commit/70c41241c2701f26a99085e433925a206ca265a3
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index da345e4b53..289489a182 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -4140,7 +4140,7 @@ int eval_interp_string(char **arg, typval_T *rettv, bool evaluate) (*arg)++; break; } - char *p = eval_one_expr_in_str(*arg, &ga); + char *p = eval_one_expr_in_str(*arg, &ga, evaluate); if (p == NULL) { ret = FAIL; break; |