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/option.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/option.c')
| -rw-r--r-- | src/nvim/option.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 86a7d9b3c2..4eb1107cd4 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -7083,6 +7083,8 @@ static int check_opt_wim(void) new_wim_flags[idx] |= WIM_FULL; } else if (i == 4 && STRNCMP(p, "list", 4) == 0) { new_wim_flags[idx] |= WIM_LIST; + } else if (i == 8 && STRNCMP(p, "lastused", 8) == 0) { + new_wim_flags[idx] |= WIM_BUFLASTUSED; } else { return FAIL; } |