mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-13 10:54:40 +02:00
fix(pretty_path): properly escape %
characters
This commit is contained in:
parent
a0afe8fef9
commit
e89653f410
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue