| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.821 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.4.821 |
| Problem: Coverity reports a few problems. |
| Solution: Avoid the warnings. (Christian Brabandt) |
| Files: src/ex_docmd.c, src/option.c, src/screen.c |
| |
| |
| |
| |
| |
| *** 4520,4525 **** |
| --- 4520,4528 ---- |
| 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, |
| |
| |
| |
| *** 9990,9995 **** |
| --- 9990,9997 ---- |
| buf_T *buf = (buf_T *)from; |
| |
| opt_idx = findoption(name); |
| + if (opt_idx < 0) |
| + return; |
| p = &(options[opt_idx]); |
| |
| switch ((int)p->indir) |
| |
| |
| |
| *** 7801,7807 **** |
| } |
| } |
| posmatch->cur = 0; |
| ! if (shl->lnum == lnum) |
| { |
| colnr_T start = posmatch->pos[bot].col == 0 |
| ? 0 : posmatch->pos[bot].col - 1; |
| --- 7801,7807 ---- |
| } |
| } |
| posmatch->cur = 0; |
| ! if (shl->lnum == lnum && bot >= 0) |
| { |
| colnr_T start = posmatch->pos[bot].col == 0 |
| ? 0 : posmatch->pos[bot].col - 1; |
| |
| |
| |
| *** 743,744 **** |
| --- 743,746 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 821, |
| /**/ |
| |
| -- |
| A poem: read aloud: |
| |
| <> !*''# Waka waka bang splat tick tick hash, |
| ^"`$$- Caret quote back-tick dollar dollar dash, |
| !*=@$_ Bang splat equal at dollar under-score, |
| %*<> ~#4 Percent splat waka waka tilde number four, |
| &[]../ Ampersand bracket bracket dot dot slash, |
| |{,,SYSTEM HALTED Vertical-bar curly-bracket comma comma CRASH. |
| |
| Fred Bremmer and Steve Kroese (Calvin College & Seminary of Grand Rapids, MI.) |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |