commit | ab9c89b68dcbdb3fbda8c5a50dd90caca64f1bfd | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jul 03 17:47:26 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jul 03 17:47:26 2016 +0200 |
tree | 2f0ec77daa7639d59485f19ea7e2e019cd1b5fb8 | |
parent | dec85cf75044ed94f611c825a7a0b0050a2597b9 [diff] [blame] |
patch 7.4.1988 Problem: When updating viminfo with file marks there is no time order. Solution: Remember the time when a buffer was last used, store marks for the most recently used buffers.
diff --git a/src/main.c b/src/main.c index dcede31..42638e4 100644 --- a/src/main.c +++ b/src/main.c
@@ -1273,6 +1273,9 @@ if (need_maketitle) maketitle(); #endif +#ifdef FEAT_VIMINFO + curbuf->b_last_used = vim_time(); +#endif /* display message after redraw */ if (keep_msg != NULL) {