This commit is contained in:
Jan Edmund Lazo
2018-08-20 21:51:01 -04:00
parent 612f3fd57a
commit ee51061b8c
2 changed files with 18 additions and 14 deletions

View File

@@ -7577,10 +7577,11 @@ static void ex_bang(exarg_T *eap)
*/
static void ex_undo(exarg_T *eap)
{
if (eap->addr_count == 1) /* :undo 123 */
if (eap->addr_count == 1) { // :undo 123
undo_time(eap->line2, false, false, true);
else
} else {
u_undo(1);
}
}
static void ex_wundo(exarg_T *eap)
@@ -7634,7 +7635,7 @@ static void ex_later(exarg_T *eap)
EMSG2(_(e_invarg2), eap->arg);
else
undo_time(eap->cmdidx == CMD_earlier ? -count : count,
sec, file, false);
sec, file, false);
}
/*