From a1179904c022d6ccd22ebd00a4db2618a9d9ca34 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 17 Mar 2011 17:41:02 -0400 Subject: Performance and speed improvements. --- modules/textadept/snapopen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/textadept/snapopen.lua') diff --git a/modules/textadept/snapopen.lua b/modules/textadept/snapopen.lua index 74c2c2fc..fb7edc7c 100644 --- a/modules/textadept/snapopen.lua +++ b/modules/textadept/snapopen.lua @@ -69,7 +69,7 @@ local function add_directory(utf8_dir, list, depth, filter) for file in lfs_dir(dir) do if not string_match(file, '^%.%.?$') then file = dir..(not WIN32 and '/' or '\\')..file - if lfs_attributes(file).mode == 'directory' then + if lfs_attributes(file, 'mode') == 'directory' then if not exclude(file, filter.folders) and depth < DEPTH then add_directory(file, list, depth + 1, filter) end -- cgit v1.2.3