0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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.
This commit is contained in:
Bram Moolenaar
2016-07-03 17:47:26 +02:00
parent dec85cf750
commit ab9c89b68d
8 changed files with 213 additions and 42 deletions

View File

@@ -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);
}