Skip to content

Commit

Permalink
fix(treesitter): ignore weird invalid end_col errors. Fixes #473
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 22, 2023
1 parent ca6401f commit 7e2692b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/noice/text/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function M.highlight(buf, ns, range, lang)
local is_spell = name == "spell"

if hl and not is_spell then
vim.api.nvim_buf_set_extmark(buf, ns, start_row, start_col, {
pcall(vim.api.nvim_buf_set_extmark, buf, ns, start_row, start_col, {
end_line = end_row,
end_col = end_col,
hl_group = hl,
Expand Down

0 comments on commit 7e2692b

Please sign in to comment.