Skip to content

Commit

Permalink
Fix edge case of deduplicating tags
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed May 31, 2024
1 parent d211c1c commit 3d5fbcd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/obsidian/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,9 @@ Client.find_tags_async = function(self, term, callback, opts)
---@param col_start integer|?
---@param col_end integer|?
local add_match = function(tag, path, note, lnum, text, col_start, col_end)
if vim.startswith(tag, "#") then
tag = string.sub(tag, 2)
end
if not path_to_tag_loc[path] then
path_to_tag_loc[path] = {}
end
Expand Down

0 comments on commit 3d5fbcd

Please sign in to comment.