This reverts commit 1398e11b06.
This commit is contained in:
@@ -938,6 +938,10 @@ internal.buffers = function(opts)
|
|||||||
for i, bufnr in ipairs(bufnrs) do
|
for i, bufnr in ipairs(bufnrs) do
|
||||||
local flag = bufnr == vim.fn.bufnr "" and "%" or (bufnr == vim.fn.bufnr "#" and "#" or " ")
|
local flag = bufnr == vim.fn.bufnr "" and "%" or (bufnr == vim.fn.bufnr "#" and "#" or " ")
|
||||||
|
|
||||||
|
if opts.sort_lastused and not opts.ignore_current_buffer and flag == "#" then
|
||||||
|
default_selection_idx = 2
|
||||||
|
end
|
||||||
|
|
||||||
local element = {
|
local element = {
|
||||||
bufnr = bufnr,
|
bufnr = bufnr,
|
||||||
flag = flag,
|
flag = flag,
|
||||||
|
|||||||
Reference in New Issue
Block a user