Skip to content

Commit

Permalink
fix: don't set buflisted on oil buffers (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Nov 15, 2023
1 parent af13ce3 commit 873d505
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/oil/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,9 @@ M.select = function(opts, callback)
vim.bo[filebufnr].bufhidden = "wipe"
vim.b[filebufnr].oil_preview_buffer = true
end
else
elseif not vim.endswith(normalized_url, "/") then
-- The :buffer command doesn't set buflisted=true
-- So do that for non-diretory-buffers
vim.bo[filebufnr].buflisted = true
end

Expand Down

0 comments on commit 873d505

Please sign in to comment.