diff options
author | Marc Coquand <marc@baemingo.com> | 2023-05-22 18:45:27 -0500 |
---|---|---|
committer | Marc Coquand <marc@baemingo.com> | 2023-05-22 18:45:27 -0500 |
commit | b9f81da9ae7133150fd56af8aeb7ec71d354c7c9 (patch) | |
tree | 61b172d87918d72274c81233077e92d389d992b2 /lua | |
parent | 58d0461219ddd35baacf0ba9ec02ed33e8c1d18c (diff) | |
download | BufferBrowser-b9f81da9ae7133150fd56af8aeb7ec71d354c7c9.tar.gz BufferBrowser-b9f81da9ae7133150fd56af8aeb7ec71d354c7c9.tar.bz2 BufferBrowser-b9f81da9ae7133150fd56af8aeb7ec71d354c7c9.zip |
Revert "Change to buf isValid"
This reverts commit 58d0461219ddd35baacf0ba9ec02ed33e8c1d18c.
Diffstat (limited to 'lua')
-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 |