Skip to content

Commit 69aa099

Browse files
committed
patch 7.4.2065
Problem: Compiler warns for uninitialzed variable. (John Marriott) Solution: Set lnum to the right value.
1 parent 4f5c5f2 commit 69aa099

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/evalfunc.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3447,12 +3447,9 @@ f_foldtext(typval_T *argvars UNUSED, typval_T *rettv)
34473447
&& dashes != NULL)
34483448
{
34493449
/* Find first non-empty line in the fold. */
3450-
while (lnum < (linenr_T)get_vim_var_nr(VV_FOLDEND))
3451-
{
3450+
for (lnum = foldstart; lnum < foldend; ++lnum)
34523451
if (!linewhite(lnum))
34533452
break;
3454-
++lnum;
3455-
}
34563453

34573454
/* Find interesting text in this line. */
34583455
s = skipwhite(ml_get(lnum));

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,8 @@ static char *(features[]) =
758758

759759
static int included_patches[] =
760760
{ /* Add new patch number below this line */
761+
/**/
762+
2065,
761763
/**/
762764
2064,
763765
/**/

0 commit comments

Comments
 (0)