mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(util): pcall reference to deleted buffer
See #1863 This does stop my error, but I'm not super familiar with the language or the APIs to know if it's remotely correct.
This commit is contained in:
parent
09eafc60ef
commit
da6fb89d3c
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ function M.lazy_file()
|
||||||
data = event.data,
|
data = event.data,
|
||||||
buf = event.buf,
|
buf = event.buf,
|
||||||
})
|
})
|
||||||
if vim.bo[event.buf].filetype then
|
if pcall(vim.bo[event.buf], "filetype") then
|
||||||
Event.trigger({
|
Event.trigger({
|
||||||
event = "FileType",
|
event = "FileType",
|
||||||
buf = event.buf,
|
buf = event.buf,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue