fix(help_tags): exclude invalid help-tag that errors

fix #1858
This commit is contained in:
Simon Hauser
2022-04-25 22:28:58 +02:00
parent fce74f509d
commit fd9e1e1674

View File

@@ -614,6 +614,7 @@ internal.help_tags = function(opts)
if not line:match "^!_TAG_" then if not line:match "^!_TAG_" then
local fields = vim.split(line, delimiter, true) local fields = vim.split(line, delimiter, true)
if #fields == 3 and not tags_map[fields[1]] then if #fields == 3 and not tags_map[fields[1]] then
if fields[1] ~= "help-tags" or fields[2] ~= "tags" then
table.insert(tags, { table.insert(tags, {
name = fields[1], name = fields[1],
filename = help_files[fields[2]], filename = help_files[fields[2]],
@@ -626,6 +627,7 @@ internal.help_tags = function(opts)
end end
end end
end end
end
pickers.new(opts, { pickers.new(opts, {
prompt_title = "Help", prompt_title = "Help",