diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-20 21:51:01 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-20 23:49:34 -0400 |
commit | ee51061b8c00eb1ac8ce628ba3831236b327ead2 (patch) | |
tree | dfa69226bc99fb4807a74fddb1237a595e3b23a8 /src/nvim/ex_docmd.c | |
parent | 612f3fd57a94ce9674650a973f6bc7a5dfed1949 (diff) | |
download | rneovim-ee51061b8c00eb1ac8ce628ba3831236b327ead2.tar.gz rneovim-ee51061b8c00eb1ac8ce628ba3831236b327ead2.tar.bz2 rneovim-ee51061b8c00eb1ac8ce628ba3831236b327ead2.zip |
lint
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index b40cf3d3f7..b22f799da0 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -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); } /* |