commit | 52410575be50d5c40bbe6380159df48cfc382ceb | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Oct 27 05:12:45 2019 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Oct 27 05:12:45 2019 +0100 |
tree | f8a212edd951fa1df961da74870bc9c172dc0b01 | |
parent | dfded98f87601b11271ee88392c821ceb6390eda [diff] [blame] |
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)
diff --git a/src/evalbuffer.c b/src/evalbuffer.c index 35c9ed2..a82b897 100644 --- a/src/evalbuffer.c +++ b/src/evalbuffer.c
@@ -595,6 +595,10 @@ } #endif +#ifdef FEAT_VIMINFO + dict_add_number(dict, "lastused", buf->b_last_used); +#endif + return dict; }