1
0
forked from aniani/vim

patch 7.4.821

Problem:    Coverity reports a few problems.
Solution:   Avoid the warnings. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2015-08-11 18:53:03 +02:00
parent 8fee878fe2
commit bd8539aac3
4 changed files with 8 additions and 1 deletions

View File

@@ -7801,7 +7801,7 @@ next_search_hl_pos(shl, lnum, posmatch, mincol)
}
}
posmatch->cur = 0;
if (shl->lnum == lnum)
if (shl->lnum == lnum && bot >= 0)
{
colnr_T start = posmatch->pos[bot].col == 0
? 0 : posmatch->pos[bot].col - 1;