aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Coquand <marc@baemingo.com>2023-05-22 18:11:27 -0500
committerMarc Coquand <marc@baemingo.com>2023-05-22 18:11:27 -0500
commit58d0461219ddd35baacf0ba9ec02ed33e8c1d18c (patch)
treee3c12c571175d99152a73f8c2a7ddfe69d5bb84c
parent1cdfa026cf1f6bbb877f9cd80a0bf563aaf1a21d (diff)
downloadBufferBrowser-58d0461219ddd35baacf0ba9ec02ed33e8c1d18c.tar.gz
BufferBrowser-58d0461219ddd35baacf0ba9ec02ed33e8c1d18c.tar.bz2
BufferBrowser-58d0461219ddd35baacf0ba9ec02ed33e8c1d18c.zip
Change to buf isValid
Diffstat (limited to '')
-rw-r--r--lua/buffer_browser.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/buffer_browser.lua b/lua/buffer_browser.lua
index c9ab6d7..7eeabbc 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 vim.bo[bufnr] == nil) then
+ if (bufnr == nil and api.nvim_buf_is_valid(bufnr)) then
return nil
end
return vim.bo[bufnr].filetype