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
2025-11-01 17:42:07 +01:00
committed by Kacper Michajłow
parent 04055e5806
commit 8364b122ee

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