mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 02:46:31 +00: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:
@@ -3063,6 +3063,7 @@ void ex_return(exarg_T *eap)
|
|||||||
clear_evalarg(&evalarg, 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,
|
static int ex_call_inner(exarg_T *eap, char *name, char **arg, char *startarg,
|
||||||
const funcexe_T *const funcexe_init, evalarg_T *const evalarg)
|
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;
|
bool failed = false;
|
||||||
|
|
||||||
for (linenr_T lnum = eap->line1; lnum <= eap->line2; lnum++) {
|
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 (lnum > curbuf->b_ml.ml_line_count) {
|
||||||
// If the function deleted lines or switched to another buffer
|
// If the function deleted lines or switched to another buffer
|
||||||
// the line number may become invalid.
|
// the line number may become invalid.
|
||||||
|
Reference in New Issue
Block a user