Skip to content

Commit

Permalink
fix(text): deal with invalid extmark offsets. Fixes #875
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jul 24, 2024
1 parent dd7363e commit 15d63b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/noice/text/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function NoiceText:highlight(bufnr, ns_id, linenr, byte_start)
end

if self.enabled ~= false then
NoiceText.super.highlight(self, bufnr, ns_id, linenr, byte_start)
pcall(NoiceText.super.highlight, self, bufnr, ns_id, linenr, byte_start)
end

if self.on_render then
Expand Down

0 comments on commit 15d63b8

Please sign in to comment.