mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 19:18:34 +00:00
vim-patch:7.4.1780 (#5828)
Problem: Warnings reported by cppcheck.
Solution: Fix the warnings. (Dominique Pelle)
dc633cf827
This commit is contained in:

committed by
Justin M. Keyes

parent
c1d1493eb2
commit
18cb09e095
@@ -566,7 +566,7 @@ open_line (
|
|||||||
int i;
|
int i;
|
||||||
int l;
|
int l;
|
||||||
|
|
||||||
for (i = 0; p[i] != NUL && i < lead_len; i += l) {
|
for (i = 0; i < lead_len && p[i] != NUL; i += l) {
|
||||||
l = (*mb_ptr2len)(p + i);
|
l = (*mb_ptr2len)(p + i);
|
||||||
if (vim_strnsize(p, i + l) > repl_size)
|
if (vim_strnsize(p, i + l) > repl_size)
|
||||||
break;
|
break;
|
||||||
|
@@ -4607,7 +4607,7 @@ int do_addsub(int op_type, pos_T *pos, int length, linenr_T Prenum1)
|
|||||||
goto theend;
|
goto theend;
|
||||||
}
|
}
|
||||||
ptr = buf1;
|
ptr = buf1;
|
||||||
if (negative && (!visual || (visual && was_positive))) {
|
if (negative && (!visual || was_positive)) {
|
||||||
*ptr++ = '-';
|
*ptr++ = '-';
|
||||||
}
|
}
|
||||||
if (pre) {
|
if (pre) {
|
||||||
|
@@ -660,7 +660,7 @@ static int included_patches[] = {
|
|||||||
// 1783,
|
// 1783,
|
||||||
1782,
|
1782,
|
||||||
// 1781,
|
// 1781,
|
||||||
// 1780,
|
1780,
|
||||||
1779,
|
1779,
|
||||||
// 1778 NA
|
// 1778 NA
|
||||||
// 1777 NA
|
// 1777 NA
|
||||||
|
Reference in New Issue
Block a user