Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stevedonovan/Penlight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsteve donovan <steve.j.donovan@gmail.com>2017-04-02 19:10:06 +0300
committersteve donovan <steve.j.donovan@gmail.com>2017-04-02 19:10:06 +0300
commit257f74456b67dee009c6482aa28599b7c6832342 (patch)
treedcec8e5aa22b955cf936960b4625e793532cebcc
parent89893bce8028396799ca8106051e9e38bf3d294b (diff)
issue #228: bug in file matching for dir.getfiles1.5.1
-rw-r--r--lua/pl/dir.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/pl/dir.lua b/lua/pl/dir.lua
index 2b03d49..6fc9b12 100644
--- a/lua/pl/dir.lua
+++ b/lua/pl/dir.lua
@@ -72,7 +72,7 @@ local function _listfiles(dir,filemode,match)
for f in ldir(dir) do
if f ~= '.' and f ~= '..' then
local p = path.join(dir,f)
- if check(p) and (not match or match(p)) then
+ if check(p) and (not match or match(f)) then
append(res,p)
end
end