Skip to content

Commit 89eb5e6

Browse files
committed
fix: clear extmarks with correct buffer number
1 parent ff6749a commit 89eb5e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/tiny-inline-diagnostic/diagnostic.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ local function apply_virtual_texts(opts, bufnr)
194194
local mode = vim.api.nvim_get_mode().mode
195195
if M.enabled and vim.tbl_contains(DISABLED_MODES, mode) then
196196
disable()
197-
extmarks.clear(event.buf)
197+
extmarks.clear(bufnr)
198198
return
199199
end
200200

0 commit comments

Comments
 (0)