mirror of
https://github.com/neovim/neovim.git
synced 2024-12-26 14:11:15 -07:00
eval: Silence eap->skip false positives
`lnum` starts at `eap->line2` in case of skipping, so cycle is always run at least once.
This commit is contained in:
parent
d70a0f6895
commit
05c1829a8c
@ -2747,7 +2747,7 @@ void ex_call(exarg_T *eap)
|
|||||||
} else
|
} else
|
||||||
lnum = eap->line1;
|
lnum = eap->line1;
|
||||||
for (; lnum <= eap->line2; ++lnum) {
|
for (; lnum <= eap->line2; ++lnum) {
|
||||||
if (!eap->skip && eap->addr_count > 0) {
|
if (!eap->skip && eap->addr_count > 0) { // -V560
|
||||||
curwin->w_cursor.lnum = lnum;
|
curwin->w_cursor.lnum = lnum;
|
||||||
curwin->w_cursor.col = 0;
|
curwin->w_cursor.col = 0;
|
||||||
curwin->w_cursor.coladd = 0;
|
curwin->w_cursor.coladd = 0;
|
||||||
@ -2768,7 +2768,7 @@ void ex_call(exarg_T *eap)
|
|||||||
}
|
}
|
||||||
|
|
||||||
tv_clear(&rettv);
|
tv_clear(&rettv);
|
||||||
if (doesrange || eap->skip) {
|
if (doesrange || eap->skip) { // -V560
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user