fix: don't set buflisted on oil buffers (#220)
This commit is contained in:
parent
af13ce333f
commit
873d505e5b
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue