0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 8.2.4840: heredoc expression evaluated even when skipping

Problem:    Heredoc expression evaluated even when skipping.
Solution:   Don't evaluate when "skip" is set. (closes #10306)
This commit is contained in:
Bram Moolenaar
2022-04-28 16:51:41 +01:00
parent 0a748d9184
commit 05c7f5d3d0
3 changed files with 16 additions and 1 deletions

View File

@@ -835,7 +835,7 @@ heredoc_get(exarg_T *eap, char_u *cmd, int script_get, int vim9compile)
}
else
{
if (evalstr)
if (evalstr && !eap->skip)
{
str = eval_all_expr_in_str(str);
if (str == NULL)