Mercurial > vim
diff src/screen.c @ 5987:03d260a8ea0c v7.4.334
updated for version 7.4.334
Problem: Unitialized variables, causing some problems.
Solution: Initialize the variables. (Dominique Pelle)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 18 Jun 2014 21:20:11 +0200 |
parents | 8ae50e3ef8bf |
children | ef83b423ebf7 |
line wrap: on
line diff
--- a/src/screen.c +++ b/src/screen.c @@ -7363,7 +7363,7 @@ next_search_hl(win, shl, lnum, mincol, c match_T *shl; /* points to search_hl or a match */ linenr_T lnum; colnr_T mincol; /* minimal column for a match */ - matchitem_T *cur; /* to retrieve match postions if any */ + matchitem_T *cur; /* to retrieve match positions if any */ { linenr_T l; colnr_T matchcol; @@ -7458,9 +7458,9 @@ next_search_hl(win, shl, lnum, mincol, c } } else if (cur != NULL) - { nmatched = next_search_hl_pos(shl, lnum, &(cur->pos), matchcol); - } + else + nmatched = 0; if (nmatched == 0) { shl->lnum = 0; /* no match found */