mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
vim-patch:9.0.1446: unnecessary checks for the "skip" flag when skipping
Problem: Unnecessary checks for the "skip" flag when skipping.
Solution: Remove the unnecessary checks. (closes vim/vim#12254)
5299c0933f
This commit is contained in:
parent
f39b33ee49
commit
b1a341a48a
@ -3063,6 +3063,7 @@ void ex_return(exarg_T *eap)
|
||||
clear_evalarg(&evalarg, eap);
|
||||
}
|
||||
|
||||
/// Lower level implementation of "call". Only called when not skipping.
|
||||
static int ex_call_inner(exarg_T *eap, char *name, char **arg, char *startarg,
|
||||
const funcexe_T *const funcexe_init, evalarg_T *const evalarg)
|
||||
{
|
||||
@ -3070,7 +3071,7 @@ static int ex_call_inner(exarg_T *eap, char *name, char **arg, char *startarg,
|
||||
bool failed = false;
|
||||
|
||||
for (linenr_T lnum = eap->line1; lnum <= eap->line2; lnum++) {
|
||||
if (eap->addr_count > 0) { // -V560
|
||||
if (eap->addr_count > 0) {
|
||||
if (lnum > curbuf->b_ml.ml_line_count) {
|
||||
// If the function deleted lines or switched to another buffer
|
||||
// the line number may become invalid.
|
||||
|
Loading…
Reference in New Issue
Block a user