patch 8.2.1049: Vim9: leaking memory when using continuation line
Problem: Vim9: leaking memory when using continuation line.
Solution: Keep a pointer to the continuation line in evalarg_T. Centralize
checking for a next command.
diff --git a/src/register.c b/src/register.c
index 49f7a7c..66dd0cc 100644
--- a/src/register.c
+++ b/src/register.c
@@ -136,7 +136,7 @@
return expr_copy;
++nested;
- rv = eval_to_string(expr_copy, NULL, TRUE);
+ rv = eval_to_string(expr_copy, TRUE);
--nested;
vim_free(expr_copy);
return rv;