mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 7.4.821
Problem: Coverity reports a few problems. Solution: Avoid the warnings. (Christian Brabandt)
This commit is contained in:
@@ -4520,6 +4520,9 @@ get_address(ptr, addr_type, skip, to_other_file)
|
|||||||
pos.col = MAXCOL;
|
pos.col = MAXCOL;
|
||||||
else
|
else
|
||||||
pos.col = 0;
|
pos.col = 0;
|
||||||
|
#ifdef FEAT_VIRTUALEDIT
|
||||||
|
pos.coladd = 0;
|
||||||
|
#endif
|
||||||
if (searchit(curwin, curbuf, &pos,
|
if (searchit(curwin, curbuf, &pos,
|
||||||
*cmd == '?' ? BACKWARD : FORWARD,
|
*cmd == '?' ? BACKWARD : FORWARD,
|
||||||
(char_u *)"", 1L, SEARCH_MSG,
|
(char_u *)"", 1L, SEARCH_MSG,
|
||||||
|
@@ -9990,6 +9990,8 @@ unset_global_local_option(name, from)
|
|||||||
buf_T *buf = (buf_T *)from;
|
buf_T *buf = (buf_T *)from;
|
||||||
|
|
||||||
opt_idx = findoption(name);
|
opt_idx = findoption(name);
|
||||||
|
if (opt_idx < 0)
|
||||||
|
return;
|
||||||
p = &(options[opt_idx]);
|
p = &(options[opt_idx]);
|
||||||
|
|
||||||
switch ((int)p->indir)
|
switch ((int)p->indir)
|
||||||
|
@@ -7801,7 +7801,7 @@ next_search_hl_pos(shl, lnum, posmatch, mincol)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
posmatch->cur = 0;
|
posmatch->cur = 0;
|
||||||
if (shl->lnum == lnum)
|
if (shl->lnum == lnum && bot >= 0)
|
||||||
{
|
{
|
||||||
colnr_T start = posmatch->pos[bot].col == 0
|
colnr_T start = posmatch->pos[bot].col == 0
|
||||||
? 0 : posmatch->pos[bot].col - 1;
|
? 0 : posmatch->pos[bot].col - 1;
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
821,
|
||||||
/**/
|
/**/
|
||||||
820,
|
820,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user