0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.2225: the "last used" info of a buffer is under used

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)
This commit is contained in:
Bram Moolenaar
2019-10-27 05:12:45 +01:00
parent dfded98f87
commit 52410575be
18 changed files with 228 additions and 45 deletions

View File

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