diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-06-27 05:18:54 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-06-27 05:18:54 +0200 |
commit | 730cde924cea50977bdbfa5b977180bfaa188a27 (patch) | |
tree | c0570ec54157923527d3da2d10c31782738d532d /src/ex_docmd.c | |
parent | a800b42975f7a62282cb90d8c61ef3cff2fe810a (diff) | |
download | vim-730cde924cea50977bdbfa5b977180bfaa188a27.zip |
Added ":earlier 1f" and ":later 1f".
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 42c399349..d165305e0 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -8461,7 +8461,7 @@ ex_undo(eap) exarg_T *eap UNUSED; { if (eap->addr_count == 1) /* :undo 123 */ - undo_time(eap->line2, FALSE, TRUE); + undo_time(eap->line2, FALSE, FALSE, TRUE); else u_undo(1); } @@ -8507,6 +8507,7 @@ ex_later(eap) { long count = 0; int sec = FALSE; + int file = FALSE; char_u *p = eap->arg; if (*p == NUL) @@ -8519,13 +8520,16 @@ ex_later(eap) case 's': ++p; sec = TRUE; break; case 'm': ++p; sec = TRUE; count *= 60; break; case 'h': ++p; sec = TRUE; count *= 60 * 60; break; + case 'd': ++p; sec = TRUE; count *= 24 * 60 * 60; break; + case 'f': ++p; file = TRUE; break; } } if (*p != NUL) EMSG2(_(e_invarg2), eap->arg); else - undo_time(eap->cmdidx == CMD_earlier ? -count : count, sec, FALSE); + undo_time(eap->cmdidx == CMD_earlier ? -count : count, + sec, file, FALSE); } /* |