summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c
index 5dc1642a16..2e8ab3d8fc 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -2177,6 +2177,11 @@ eval_next_line(evalarg_T *evalarg)
vim_free(evalarg->eval_tofree);
evalarg->eval_tofree = line;
}
+
+ // Advanced to the next line, "arg" no longer points into the previous
+ // line.
+ VIM_CLEAR(evalarg->eval_tofree_cmdline);
+
return skipwhite(line);
}