mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-22 10:57:08 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user