mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.0224
This commit is contained in:
parent
af48b0924f
commit
c7d893589e
@ -301,6 +301,7 @@ static void ex_at __ARGS((exarg_T *eap));
|
|||||||
static void ex_bang __ARGS((exarg_T *eap));
|
static void ex_bang __ARGS((exarg_T *eap));
|
||||||
static void ex_undo __ARGS((exarg_T *eap));
|
static void ex_undo __ARGS((exarg_T *eap));
|
||||||
static void ex_redo __ARGS((exarg_T *eap));
|
static void ex_redo __ARGS((exarg_T *eap));
|
||||||
|
static void ex_later __ARGS((exarg_T *eap));
|
||||||
static void ex_redir __ARGS((exarg_T *eap));
|
static void ex_redir __ARGS((exarg_T *eap));
|
||||||
static void ex_redraw __ARGS((exarg_T *eap));
|
static void ex_redraw __ARGS((exarg_T *eap));
|
||||||
static void ex_redrawstatus __ARGS((exarg_T *eap));
|
static void ex_redrawstatus __ARGS((exarg_T *eap));
|
||||||
@ -8209,6 +8210,37 @@ ex_redo(eap)
|
|||||||
u_redo(1);
|
u_redo(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ":earlier" and ":later".
|
||||||
|
*/
|
||||||
|
/*ARGSUSED*/
|
||||||
|
static void
|
||||||
|
ex_later(eap)
|
||||||
|
exarg_T *eap;
|
||||||
|
{
|
||||||
|
long count = 0;
|
||||||
|
int sec = FALSE;
|
||||||
|
char_u *p = eap->arg;
|
||||||
|
|
||||||
|
if (*p == NUL)
|
||||||
|
count = 1;
|
||||||
|
else if (isdigit(*p))
|
||||||
|
{
|
||||||
|
count = getdigits(&p);
|
||||||
|
switch (*p)
|
||||||
|
{
|
||||||
|
case 's': ++p; sec = TRUE; break;
|
||||||
|
case 'm': ++p; sec = TRUE; count *= 60; break;
|
||||||
|
case 'h': ++p; sec = TRUE; count *= 60 * 60; break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (*p != NUL)
|
||||||
|
EMSG2(_(e_invarg2), eap->arg);
|
||||||
|
else
|
||||||
|
undo_time(eap->cmdidx == CMD_earlier ? -count : count, sec);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ":redir": start/stop redirection.
|
* ":redir": start/stop redirection.
|
||||||
*/
|
*/
|
||||||
|
@ -8009,7 +8009,7 @@ nv_g_cmd(cap)
|
|||||||
case '+':
|
case '+':
|
||||||
case '-': /* "g+" and "g-": undo or redo along the timeline */
|
case '-': /* "g+" and "g-": undo or redo along the timeline */
|
||||||
if (!checkclearopq(oap))
|
if (!checkclearopq(oap))
|
||||||
undo_time((int)(cap->nchar == '-' ? -cap->count1 : cap->count1));
|
undo_time(cap->nchar == '-' ? -cap->count1 : cap->count1, FALSE);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user