comparison src/scriptfile.c @ 20357:b0242bcc74e7 v8.2.0734

patch 8.2.0734: Vim9: leaking memory when using :finish Commit: https://github.com/vim/vim/commit/04816717dfea6e2469ff4c9d40f68b59aaf03724 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 10 23:11:53 2020 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Sun, 10 May 2020 23:15:04 +0200
parents 0e1dfff4f294
children 8fa783f2c69c
comparison
equal deleted inserted replaced
20356:305414dfc6d2 20357:b0242bcc74e7
1771 script_line_start(); 1771 script_line_start();
1772 #endif 1772 #endif
1773 1773
1774 // Only concatenate lines starting with a \ when 'cpoptions' doesn't 1774 // Only concatenate lines starting with a \ when 'cpoptions' doesn't
1775 // contain the 'C' flag. 1775 // contain the 'C' flag.
1776 if (line != NULL && do_concat && vim_strchr(p_cpo, CPO_CONCAT) == NULL) 1776 if (line != NULL && do_concat && vim_strchr(p_cpo, CPO_CONCAT) == NULL
1777 #ifdef FEAT_EVAL
1778 && sp->use_lines_ga < 0
1779 #endif
1780 )
1777 { 1781 {
1778 // compensate for the one line read-ahead 1782 // compensate for the one line read-ahead
1779 --sp->sourcing_lnum; 1783 --sp->sourcing_lnum;
1780 1784
1781 // Get the next line and concatenate it when it starts with a 1785 // Get the next line and concatenate it when it starts with a