Nil check, to avoid issues for files that don't have filenames yet (new files, etc..) (#169)

This commit is contained in:
Adam
2021-05-01 22:25:39 +02:00
committed by GitHub
parent b69242312d
commit dd604c1336
+1 -1
View File
@@ -248,7 +248,7 @@ end
function common.path_belongs_to(filename, path) function common.path_belongs_to(filename, path)
return string.find(filename, path .. PATHSEP, 1, true) == 1 return filename and string.find(filename, path .. PATHSEP, 1, true) == 1
end end