0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.0734: Vim9: leaking memory when using :finish

Problem:    Vim9: leaking memory when using :finish.
Solution:   Do not check for next line in third pass.
This commit is contained in:
Bram Moolenaar
2020-05-10 23:11:53 +02:00
parent cb2bdb1c6d
commit 04816717df
2 changed files with 7 additions and 1 deletions

View File

@@ -1773,7 +1773,11 @@ getsourceline(int c UNUSED, void *cookie, int indent UNUSED, int do_concat)
// Only concatenate lines starting with a \ when 'cpoptions' doesn't
// contain the 'C' flag.
if (line != NULL && do_concat && vim_strchr(p_cpo, CPO_CONCAT) == NULL)
if (line != NULL && do_concat && vim_strchr(p_cpo, CPO_CONCAT) == NULL
#ifdef FEAT_EVAL
&& sp->use_lines_ga < 0
#endif
)
{
// compensate for the one line read-ahead
--sp->sourcing_lnum;