fix(bookmarks): Strip ?? from bookmarks too

This commit is contained in:
NicolasGB
2026-07-13 10:45:32 +02:00
parent 2af8f0d80a
commit 2cbb69a914
+2 -2
View File
@@ -420,8 +420,8 @@ function M.parse_bookmark_names(bookmark_str)
for _, item in ipairs(raw_items) do
local parts = vim.split(item, "::", { plain = true })
if #parts == 2 then
-- Strip asterisks and @remote
local base_name = parts[1]:gsub("%*", ""):gsub("@.*$", "")
-- Strip asterisks and @remote and ??
local base_name = parts[1]:gsub("%*", ""):gsub("@.*$", ""):gsub("%?%?", "")
local is_deleted = parts[2] == "false"
if base_name ~= "" and not seen[base_name] then