From 686e6150d99fcf3dca3b5c995eb037aab476ef09 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 14 Feb 2009 11:17:10 -0500 Subject: Find in Files should search in 'dot' files; core/ext/find.lua --- core/ext/find.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/ext/find.lua') 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 -- cgit v1.2.3