diff options
Diffstat (limited to 'script')
-rw-r--r-- | script/files.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/script/files.lua b/script/files.lua index 88b1fe32..0817887f 100644 --- a/script/files.lua +++ b/script/files.lua @@ -280,6 +280,14 @@ function m.eachFile() local i = 0 return function () i = i + 1 + local uri = files[i] + while not m.fileMap[uri] do + i = i + 1 + uri = files[i] + if not uri then + return nil + end + end return files[i] end end |