summaryrefslogtreecommitdiff
path: root/src/viminfo.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-27 05:12:45 +0100
committerBram Moolenaar <Bram@vim.org>2019-10-27 05:12:45 +0100
commit52410575be50d5c40bbe6380159df48cfc382ceb (patch)
treef8a212edd951fa1df961da74870bc9c172dc0b01 /src/viminfo.c
parentdfded98f87601b11271ee88392c821ceb6390eda (diff)
downloadvim-git-52410575be50d5c40bbe6380159df48cfc382ceb.tar.gz
patch 8.1.2225: the "last used" info of a buffer is under usedv8.1.2225
Problem: The "last used" info of a buffer is under used. Solution: Add "lastused" to getbufinfo(). List buffers sorted by last-used field. (Andi Massimino, closes #4722)
Diffstat (limited to 'src/viminfo.c')
-rw-r--r--src/viminfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/viminfo.c b/src/viminfo.c
index b16282856..a49bb01da 100644
--- a/src/viminfo.c
+++ b/src/viminfo.c
@@ -2152,7 +2152,7 @@ write_viminfo_filemarks(FILE *fp)
/*
* Compare functions for qsort() below, that compares b_last_used.
*/
- static int
+ int
buf_compare(const void *s1, const void *s2)
{
buf_T *buf1 = *(buf_T **)s1;