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
|
// Only concatenate lines starting with a \ when 'cpoptions' doesn't
|
||||||
// contain the 'C' flag.
|
// 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
|
// compensate for the one line read-ahead
|
||||||
--sp->sourcing_lnum;
|
--sp->sourcing_lnum;
|
||||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
734,
|
||||||
/**/
|
/**/
|
||||||
733,
|
733,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user