aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-02-14 11:17:10 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-02-14 11:17:10 -0500
commit686e6150d99fcf3dca3b5c995eb037aab476ef09 (patch)
tree3321b90e75567c95145d6f1aaf276b5c166f115f
parentcd035a5e13b85813b6a91f8faf776ba5765e6c64 (diff)
downloadtextadept-686e6150d99fcf3dca3b5c995eb037aab476ef09.tar.gz
textadept-686e6150d99fcf3dca3b5c995eb037aab476ef09.zip
Find in Files should search in 'dot' files; core/ext/find.lua
-rw-r--r--core/ext/find.lua2
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