TOOLS/lua/autoload.lua: stop initial file from being added twice

this happened right after going to the next file
This commit is contained in:
ckath authored and Kacper Michajłow committed 2025-11-04 20:53:35 +01:00
1 parent 04055e5806
commit 8364b122ee
1 file changed
+3
+3
View File
@@ -372,6 +372,9 @@ local function find_and_add_entries()
added_entries[entry.filename] = true
end
-- stop initial file from being added twice
added_entries[path] = true
local append = {[-1] = {}, [1] = {}}
for direction = -1, 1, 2 do -- 2 iterations, with direction = -1 and +1
for i = 1, MAX_ENTRIES do