Skip to content

Commit

Permalink
fix: escape char % is not handled (#1363)
Browse files Browse the repository at this point in the history
close: #1362
  • Loading branch information
Decodetalkers authored Dec 11, 2023
1 parent 68d42e2 commit 5f85df4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/lspsaga/symbol/winbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ local function path_in_bar(buf)
end

for item in util.path_itera(buf) do
if string.find(item, '%%') then
item = item:gsub('%%', '%%%%')
end
item = #items == 0
and '%#' .. (hl or 'SagaFileIcon') .. '#' .. (icon and icon .. ' ' or '') .. '%*' .. bar.prefix .. 'FileName#' .. item .. '%*'
or bar.prefix
Expand Down

0 comments on commit 5f85df4

Please sign in to comment.