From 7e2692b0c461da182a54ff2af4a35aea2bf8ea5c Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 22 May 2023 14:36:29 +0200 Subject: [PATCH] fix(treesitter): ignore weird invalid end_col errors. Fixes #473 --- lua/noice/text/treesitter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/noice/text/treesitter.lua b/lua/noice/text/treesitter.lua index 6af9393d..d2146073 100644 --- a/lua/noice/text/treesitter.lua +++ b/lua/noice/text/treesitter.lua @@ -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,