Skip to content

Commit 1cd5bf2

Browse files
fix: escape char % is not handled (#1464)
origin pr is #1363, but seems it is missing, so I pr it again close: #1362
1 parent 343b717 commit 1cd5bf2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lua/lspsaga/symbol/winbar.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ local function path_in_bar(buf)
2727
end
2828

2929
for item in util.path_itera(buf) do
30+
if string.find(item, '%%') then
31+
item = item:gsub('%%', '%%%%')
32+
end
3033
item = #items == 0
3134
and '%#' .. (hl or 'SagaFileIcon') .. '#' .. (icon and icon .. ' ' or '') .. '%*' .. bar.prefix .. 'FileName#' .. item
3235
or bar.prefix

0 commit comments

Comments
 (0)