summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-24 20:34:03 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-24 20:34:03 +0200
commitb171fb179053fa631fec74911b5fb9374cb6a8a1 (patch)
treec45ae9287bf07033cc4f3bf43529b7548ba432c9 /src/buffer.c
parent9d40c63c7dc8c3eb3886c58dcd334bc7f37eceba (diff)
patch 8.2.1049: Vim9: leaking memory when using continuation linev8.2.1049
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.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index f928412e85..40ca25dfa5 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -4094,7 +4094,7 @@ build_stl_str_hl(
tv.vval.v_number = wp->w_id;
set_var((char_u *)"g:statusline_winid", &tv, FALSE);
- usefmt = eval_to_string_safe(fmt + 2, NULL, use_sandbox);
+ usefmt = eval_to_string_safe(fmt + 2, use_sandbox);
if (usefmt == NULL)
usefmt = fmt;
@@ -4434,7 +4434,7 @@ build_stl_str_hl(
if (curwin != save_curwin)
VIsual_active = FALSE;
- str = eval_to_string_safe(p, &t, use_sandbox);
+ str = eval_to_string_safe(p, use_sandbox);
curwin = save_curwin;
curbuf = save_curbuf;