mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 21:55:17 -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
|
||||
lnum = eap->line1;
|
||||
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.col = 0;
|
||||
curwin->w_cursor.coladd = 0;
|
||||
@ -2768,7 +2768,7 @@ void ex_call(exarg_T *eap)
|
||||
}
|
||||
|
||||
tv_clear(&rettv);
|
||||
if (doesrange || eap->skip) {
|
||||
if (doesrange || eap->skip) { // -V560
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user