mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 16:36:30 +00:00
vim-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 vim/vim#10306)
05c7f5d3d0
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -227,7 +227,7 @@ static list_T *heredoc_get(exarg_T *eap, char *cmd)
|
||||
}
|
||||
|
||||
char *str = theline + ti;
|
||||
if (evalstr) {
|
||||
if (evalstr && !eap->skip) {
|
||||
str = eval_all_expr_in_str(str);
|
||||
if (str == NULL) {
|
||||
// expression evaluation failed
|
||||
|
Reference in New Issue
Block a user