diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-03 17:47:26 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-03 17:47:26 +0200 |
commit | ab9c89b68dcbdb3fbda8c5a50dd90caca64f1bfd (patch) | |
tree | 2f0ec77daa7639d59485f19ea7e2e019cd1b5fb8 /src/buffer.c | |
parent | dec85cf75044ed94f611c825a7a0b0050a2597b9 (diff) | |
download | vim-git-ab9c89b68dcbdb3fbda8c5a50dd90caca64f1bfd.tar.gz |
patch 7.4.1988v7.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.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 39a5bcb4d..058e4d785 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1619,6 +1619,9 @@ enter_buffer(buf_T *buf) if (!curbuf->b_help && curwin->w_p_spell && *curwin->w_s->b_p_spl != NUL) (void)did_set_spelllang(curwin); #endif +#ifdef FEAT_VIMINFO + curbuf->b_last_used = vim_time(); +#endif redraw_later(NOT_VALID); } |