This commit is contained in:
Justin M. Keyes
2016-08-25 20:36:59 -04:00
parent c826ebd3de
commit 7a589e4a9e

View File

@@ -345,7 +345,7 @@ int do_cmdline(char_u *cmdline, LineGetter fgetline,
msg_list = saved_msg_list;
return FAIL;
}
++call_depth;
call_depth++;
start_batch_changes();
cstack.cs_idx = -1;
@@ -953,7 +953,7 @@ int do_cmdline(char_u *cmdline, LineGetter fgetline,
did_endif = FALSE; /* in case do_cmdline used recursively */
--call_depth;
call_depth--;
end_batch_changes();
return retval;
}
@@ -9513,16 +9513,15 @@ static void ex_foldopen(exarg_T *eap)
static void ex_folddo(exarg_T *eap)
{
linenr_T lnum;
/* First set the marks for all lines closed/open. */
for (lnum = eap->line1; lnum <= eap->line2; ++lnum)
if (hasFolding(lnum, NULL, NULL) == (eap->cmdidx == CMD_folddoclosed))
// First set the marks for all lines closed/open.
for (linenr_T lnum = eap->line1; lnum <= eap->line2; ++lnum) {
if (hasFolding(lnum, NULL, NULL) == (eap->cmdidx == CMD_folddoclosed)) {
ml_setmarked(lnum);
}
}
/* Execute the command on the marked lines. */
global_exe(eap->arg);
ml_clearmarked(); /* clear rest of the marks */
global_exe(eap->arg); // Execute the command on the marked lines.
ml_clearmarked(); // clear rest of the marks
}
static void ex_terminal(exarg_T *eap)