mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -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:
@@ -595,6 +595,10 @@ get_buffer_info(buf_T *buf)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_VIMINFO
|
||||
dict_add_number(dict, "lastused", buf->b_last_used);
|
||||
#endif
|
||||
|
||||
return dict;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user