Problem: Coverity reports a few problems.
Solution: Avoid the warnings. (Christian Brabandt)
pos.col = MAXCOL;
else
pos.col = 0;
+#ifdef FEAT_VIRTUALEDIT
+ pos.coladd = 0;
+#endif
if (searchit(curwin, curbuf, &pos,
*cmd == '?' ? BACKWARD : FORWARD,
(char_u *)"", 1L, SEARCH_MSG,
buf_T *buf = (buf_T *)from;
opt_idx = findoption(name);
+ if (opt_idx < 0)
+ return;
p = &(options[opt_idx]);
switch ((int)p->indir)
}
}
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;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 821,
/**/
820,
/**/