1
0
forked from aniani/vim

patch 7.4.2065

Problem:    Compiler warns for uninitialzed variable. (John Marriott)
Solution:   Set lnum to the right value.
This commit is contained in:
Bram Moolenaar
2016-07-17 22:33:53 +02:00
parent 4f5c5f2980
commit 69aa099641
2 changed files with 3 additions and 4 deletions

View File

@@ -3447,12 +3447,9 @@ f_foldtext(typval_T *argvars UNUSED, typval_T *rettv)
&& dashes != NULL)
{
/* Find first non-empty line in the fold. */
while (lnum < (linenr_T)get_vim_var_nr(VV_FOLDEND))
{
for (lnum = foldstart; lnum < foldend; ++lnum)
if (!linewhite(lnum))
break;
++lnum;
}
/* Find interesting text in this line. */
s = skipwhite(ml_get(lnum));

View File

@@ -758,6 +758,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2065,
/**/
2064,
/**/