Fix rendering label

This commit is contained in:
David Kosorin 2024-10-18 00:56:37 +02:00
parent ed55dbe1e7
commit 1db1aba7e9
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -606,7 +606,7 @@ function widget.new(args)
end
rendered_text = table.concat(gtable.map(function(part)
local capture = string.sub(text, part.from, part.to)
local capture = string.sub(rendered_text, part.from, part.to)
if part.highlight then
return markup.bg(self.highlight_bg, markup.fg(self.highlight_fg, capture))
else