diff options
-rw-r--r-- | lua/buffer_browser.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/buffer_browser.lua b/lua/buffer_browser.lua index 7eeabbc..c9ab6d7 100644 --- a/lua/buffer_browser.lua +++ b/lua/buffer_browser.lua @@ -136,7 +136,7 @@ local function getBufNr() end local function getFiletype(bufnr) - if (bufnr == nil and api.nvim_buf_is_valid(bufnr)) then + if (bufnr == nil and vim.bo[bufnr] == nil) then return nil end return vim.bo[bufnr].filetype |