Mercurial > vim
comparison src/structs.h @ 9414:1003973c99df v7.4.1988
commit https://github.com/vim/vim/commit/ab9c89b68dcbdb3fbda8c5a50dd90caca64f1bfd
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 3 17:47:26 2016 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 03 Jul 2016 18:00:05 +0200 |
parents | 32e34e574716 |
children | 4d8f7f8da90c |
comparison
equal
deleted
inserted
replaced
9413:d72229478e52 | 9414:1003973c99df |
---|---|
1769 | 1769 |
1770 long b_mtime; /* last change time of original file */ | 1770 long b_mtime; /* last change time of original file */ |
1771 long b_mtime_read; /* last change time when reading */ | 1771 long b_mtime_read; /* last change time when reading */ |
1772 off_T b_orig_size; /* size of original file in bytes */ | 1772 off_T b_orig_size; /* size of original file in bytes */ |
1773 int b_orig_mode; /* mode of original file */ | 1773 int b_orig_mode; /* mode of original file */ |
1774 #ifdef FEAT_VIMINFO | |
1775 time_T b_last_used; /* time when the buffer was last used; used | |
1776 * for viminfo */ | |
1777 #endif | |
1774 | 1778 |
1775 pos_T b_namedm[NMARKS]; /* current named marks (mark.c) */ | 1779 pos_T b_namedm[NMARKS]; /* current named marks (mark.c) */ |
1776 | 1780 |
1777 /* These variables are set when VIsual_active becomes FALSE */ | 1781 /* These variables are set when VIsual_active becomes FALSE */ |
1778 visualinfo_T b_visual; | 1782 visualinfo_T b_visual; |