From 85c318d6c20f69ea93648f4234de7e1916e14359 Mon Sep 17 00:00:00 2001 From: HumanEntity Date: Mon, 25 Dec 2023 14:17:50 +0100 Subject: Fixed error with iterating over table --- lua/denote/internal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/denote') diff --git a/lua/denote/internal.lua b/lua/denote/internal.lua index fd1249b..83bc251 100644 --- a/lua/denote/internal.lua +++ b/lua/denote/internal.lua @@ -103,7 +103,7 @@ function M.search(date, name, tags, func) for _, item in pairs(items_copy) do local item_tags_pre = M.get_tags(item) local item_tags = {} - for _, i in item_tags_pre do + for _, i in pairs(item_tags_pre) do item_tags[i] = 0 end local good = true -- cgit v1.2.3