changeset 9575:7ee1c83e3ddf v7.4.2065

commit https://github.com/vim/vim/commit/69aa099641616268bfcde9dc3aa313c677846b12 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 17 22:33:53 2016 +0200 patch 7.4.2065 Problem: Compiler warns for uninitialzed variable. (John Marriott) Solution: Set lnum to the right value.
author Christian Brabandt <cb@256bit.org>
date Sun, 17 Jul 2016 23:00:06 +0200
parents 4bf5b0787d22
children 3ed2642b1328
files src/evalfunc.c src/version.c
diffstat 2 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -3447,12 +3447,9 @@ f_foldtext(typval_T *argvars UNUSED, typ
 	    && 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));
--- a/src/version.c
+++ b/src/version.c
@@ -759,6 +759,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2065,
+/**/
     2064,
 /**/
     2063,