Merge pull request #205 from Isrothy/master

fix: escape % in lualine component
This commit is contained in:
Steven Arcangeli 2023-01-06 10:39:25 -08:00 committed by GitHub
commit 3eafbd28ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,7 @@ function M:format_status(symbols, depth, separator, icons_enabled, colored)
end
for _, symbol in ipairs(symbols) do
local name = symbol.name
local name = utils.stl_escape(symbol.name)
if colored then
name = self:format_hl(self.highlight_groups[symbol.kind].text) .. name
end