comparison src/evalfunc.c @ 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 5eaa708ab50d
children 05a56bbe34a1
comparison
equal deleted inserted replaced
9574:4bf5b0787d22 9575:7ee1c83e3ddf
3445 dashes = get_vim_var_str(VV_FOLDDASHES); 3445 dashes = get_vim_var_str(VV_FOLDDASHES);
3446 if (foldstart > 0 && foldend <= curbuf->b_ml.ml_line_count 3446 if (foldstart > 0 && foldend <= curbuf->b_ml.ml_line_count
3447 && dashes != NULL) 3447 && dashes != NULL)
3448 { 3448 {
3449 /* Find first non-empty line in the fold. */ 3449 /* Find first non-empty line in the fold. */
3450 while (lnum < (linenr_T)get_vim_var_nr(VV_FOLDEND)) 3450 for (lnum = foldstart; lnum < foldend; ++lnum)
3451 {
3452 if (!linewhite(lnum)) 3451 if (!linewhite(lnum))
3453 break; 3452 break;
3454 ++lnum;
3455 }
3456 3453
3457 /* Find interesting text in this line. */ 3454 /* Find interesting text in this line. */
3458 s = skipwhite(ml_get(lnum)); 3455 s = skipwhite(ml_get(lnum));
3459 /* skip C comment-start */ 3456 /* skip C comment-start */
3460 if (s[0] == '/' && (s[1] == '*' || s[1] == '/')) 3457 if (s[0] == '/' && (s[1] == '*' || s[1] == '/'))