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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user