From 8364b122eed559ec2a80cd4d924df8338519f53b Mon Sep 17 00:00:00 2001 From: ckath Date: Sat, 1 Nov 2025 17:42:07 +0100 Subject: [PATCH] TOOLS/lua/autoload.lua: stop initial file from being added twice this happened right after going to the next file --- TOOLS/lua/autoload.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TOOLS/lua/autoload.lua b/TOOLS/lua/autoload.lua index 75aec10ca9..ffe56e6e02 100644 --- a/TOOLS/lua/autoload.lua +++ b/TOOLS/lua/autoload.lua @@ -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