diff options
| author | Rob Pilling <robpilling@gmail.com> | 2020-03-22 21:40:12 +0000 |
|---|---|---|
| committer | Rob Pilling <robpilling@gmail.com> | 2020-04-21 21:40:22 +0100 |
| commit | 978a6bcaf2b98b3c89381a3eacf642b4f61db033 (patch) | |
| tree | 29f26959683fa1f5b10feed3b086531777d1e9f6 /src/nvim/eval.c | |
| parent | 9d59f066cbbe8893559586eee5bfca9378cf6385 (diff) | |
| download | rneovim-978a6bcaf2b98b3c89381a3eacf642b4f61db033.tar.gz rneovim-978a6bcaf2b98b3c89381a3eacf642b4f61db033.tar.bz2 rneovim-978a6bcaf2b98b3c89381a3eacf642b4f61db033.zip | |
vim-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 vim/vim#4722)
https://github.com/vim/vim/commit/52410575be50d5c40bbe6380159df48cfc382ceb
Diffstat (limited to 'src/nvim/eval.c')
| -rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 12b13a1f08..bcdb4a18f1 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -7241,6 +7241,8 @@ dict_T *get_buffer_info(buf_T *buf) tv_dict_add_list(dict, S_LEN("signs"), get_buffer_signs(buf)); } + tv_dict_add_nr(dict, S_LEN("lastused"), buf->b_last_used); + return dict; } |
