Fix rendering label
This commit is contained in:
parent
ed55dbe1e7
commit
1db1aba7e9
|
@ -606,7 +606,7 @@ function widget.new(args)
|
||||||
end
|
end
|
||||||
|
|
||||||
rendered_text = table.concat(gtable.map(function(part)
|
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
|
if part.highlight then
|
||||||
return markup.bg(self.highlight_bg, markup.fg(self.highlight_fg, capture))
|
return markup.bg(self.highlight_bg, markup.fg(self.highlight_fg, capture))
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue