Skip to content

Commit b5e08be

Browse files
committed
fix(buffers): ignore buflisted for cur buf (closes #1117)
1 parent faf585f commit b5e08be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/fzf-lua/providers/buffers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ local filter_buffers = function(opts, unfiltered)
2626
local bufnrs = vim.tbl_filter(function(b)
2727
if not vim.api.nvim_buf_is_valid(b) then
2828
excluded[b] = true
29-
elseif not opts.show_unlisted and vim.fn.buflisted(b) ~= 1 then
29+
elseif not opts.show_unlisted and b ~= core.CTX().bufnr and vim.fn.buflisted(b) ~= 1 then
3030
excluded[b] = true
3131
elseif not opts.show_unloaded and not vim.api.nvim_buf_is_loaded(b) then
3232
excluded[b] = true

0 commit comments

Comments
 (0)