mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-13 19:04:36 +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
|
---@param hl_group? string
|
||||||
---@return string
|
---@return string
|
||||||
function M.format(component, text, hl_group)
|
function M.format(component, text, hl_group)
|
||||||
|
text = text:gsub("%%", "%%%%")
|
||||||
if not hl_group or hl_group == "" then
|
if not hl_group or hl_group == "" then
|
||||||
return text
|
return text
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue