We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7291e45 commit 1ee3f03Copy full SHA for 1ee3f03
lua/hlchunk/mods/chunk/init.lua
@@ -176,6 +176,9 @@ function ChunkMod:createAutocmd()
176
BaseMod.createAutocmd(self)
177
local render_cb = function(event, opts)
178
local bufnr = event.buf
179
+ if not api.nvim_buf_is_valid(bufnr) then
180
+ return
181
+ end
182
local winid = api.nvim_get_current_win()
183
local pos = api.nvim_win_get_cursor(winid)
184
0 commit comments