diff options
-rw-r--r-- | core/ext/find.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ext/find.lua b/core/ext/find.lua index c17d37b4..1f177545 100644 --- a/core/ext/find.lua +++ b/core/ext/find.lua @@ -109,7 +109,7 @@ function find.find(text, next, flags, nowrap, wrapped) end function search_dir(directory) for file in lfs.dir(directory) do - if not file:find('^%.') then + if not file:find('^%.%.?$') then -- ignore . and .. local path = directory..'/'..file local type = lfs.attributes(path).mode if type == 'directory' then |