Skip to content

Commit 7e2692b

Browse files
committed
fix(treesitter): ignore weird invalid end_col errors. Fixes #473
1 parent ca6401f commit 7e2692b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/noice/text/treesitter.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function M.highlight(buf, ns, range, lang)
8888
local is_spell = name == "spell"
8989

9090
if hl and not is_spell then
91-
vim.api.nvim_buf_set_extmark(buf, ns, start_row, start_col, {
91+
pcall(vim.api.nvim_buf_set_extmark, buf, ns, start_row, start_col, {
9292
end_line = end_row,
9393
end_col = end_col,
9494
hl_group = hl,

0 commit comments

Comments
 (0)