Skip to content

Commit

Permalink
fix(buffers): ignore buflisted for cur buf (closes #1117)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Apr 3, 2024
1 parent faf585f commit b5e08be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/fzf-lua/providers/buffers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ local filter_buffers = function(opts, unfiltered)
local bufnrs = vim.tbl_filter(function(b)
if not vim.api.nvim_buf_is_valid(b) then
excluded[b] = true
elseif not opts.show_unlisted and vim.fn.buflisted(b) ~= 1 then
elseif not opts.show_unlisted and b ~= core.CTX().bufnr and vim.fn.buflisted(b) ~= 1 then
excluded[b] = true
elseif not opts.show_unloaded and not vim.api.nvim_buf_is_loaded(b) then
excluded[b] = true
Expand Down

0 comments on commit b5e08be

Please sign in to comment.