summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-25 20:17:03 +0200
committerwm4 <wm4@nowhere>2014-05-25 20:17:03 +0200
commit0e1ab2a8da8dee6caf1ce0e6604b9a1ba5f3f7fd (patch)
tree488ae5d9bf93d0df028cc5c1b4b7594a9ccf6648 /TOOLS
parent2309bb91ccb2fdb60f6092bb7f398419c546204d (diff)
downloadmpv-0e1ab2a8da8dee6caf1ce0e6604b9a1ba5f3f7fd.tar.bz2
mpv-0e1ab2a8da8dee6caf1ce0e6604b9a1ba5f3f7fd.tar.xz
autoload.lua: fix autoloading of files to prepend
This used the wrong index variable, and thus didn't work.
Diffstat (limited to 'TOOLS')
-rw-r--r--TOOLS/lua/autoload.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/TOOLS/lua/autoload.lua b/TOOLS/lua/autoload.lua
index 37ceb97fdf..1fe1aec49c 100644
--- a/TOOLS/lua/autoload.lua
+++ b/TOOLS/lua/autoload.lua
@@ -52,7 +52,7 @@ function find_and_add_entries()
end
end
if dir == -1 then
- if current == 1 then -- never add additional entries in the middle
+ if pl_current == 1 then -- never add additional entries in the middle
mp.msg.info("Prepending " .. file)
table.insert(append[-1], 1, file)
end