Skip to content

Commit

Permalink
fix(pretty_path): properly escape % characters
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 12, 2024
1 parent a0afe8f commit e89653f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/lazyvim/util/lualine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ end
---@param hl_group? string
---@return string
function M.format(component, text, hl_group)
text = text:gsub("%%", "%%%%")
if not hl_group or hl_group == "" then
return text
end
Expand Down

0 comments on commit e89653f

Please sign in to comment.