Bram,
attached patch fix some coverity issues.
Issues can be seen, if you open the coverity defect view and search for
the CIDs (you can enter several CIDs in the search field by comma
separating them).
Best,
Christian
--
Man muss durch die Hölle gegangen sein um festzustellen ob
man im Himmel war oder ist.
-- Benjamin Stramke
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
# HG changeset patch
# Parent b4d82ca5d8c0589b34b0f35b102a71b50d5580c4
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -4519,6 +4519,9 @@ get_address(ptr, addr_type, skip, to_oth
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,
# HG changeset patch
# Parent 50d9adfc203cf98987136279c876fec4773634fa
diff --git a/src/option.c b/src/option.c
--- a/src/option.c
+++ b/src/option.c
@@ -9949,6 +9949,8 @@ unset_global_local_option(name, from)
buf_T *buf = (buf_T *)from;
opt_idx = findoption(name);
+ if (opt_idx < 0)
+ return;
p = &(options[opt_idx]);
switch ((int)p->indir)
# HG changeset patch
# Parent 6c43394ba12012f4a1f70a76582012d4b19d97bf
diff --git a/src/screen.c b/src/screen.c
--- a/src/screen.c
+++ b/src/screen.c
@@ -7779,7 +7779,7 @@ next_search_hl_pos(shl, lnum, posmatch,
}
}
posmatch->cur = 0;
- if (shl->lnum == lnum)
+ if (shl->lnum == lnum && bot > -1)
{
colnr_T start = posmatch->pos[bot].col == 0
? 0 : posmatch->pos[bot].col - 1;