summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-03 17:47:26 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-03 17:47:26 +0200
commitab9c89b68dcbdb3fbda8c5a50dd90caca64f1bfd (patch)
tree2f0ec77daa7639d59485f19ea7e2e019cd1b5fb8 /src/structs.h
parentdec85cf75044ed94f611c825a7a0b0050a2597b9 (diff)
downloadvim-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/structs.h')
-rw-r--r--src/structs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index 9d19c3c89..05f461705 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1771,6 +1771,10 @@ struct file_buffer
long b_mtime_read; /* last change time when reading */
off_T b_orig_size; /* size of original file in bytes */
int b_orig_mode; /* mode of original file */
+#ifdef FEAT_VIMINFO
+ time_T b_last_used; /* time when the buffer was last used; used
+ * for viminfo */
+#endif
pos_T b_namedm[NMARKS]; /* current named marks (mark.c) */