aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/snapopen.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-03-17 17:41:02 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-03-17 17:41:02 -0400
commita1179904c022d6ccd22ebd00a4db2618a9d9ca34 (patch)
tree825bae061b80facf01a5fbf921e9120042c4211c /modules/textadept/snapopen.lua
parent8f061a7148266ce8d4a05459f7de680a47b8899e (diff)
downloadtextadept-a1179904c022d6ccd22ebd00a4db2618a9d9ca34.tar.gz
textadept-a1179904c022d6ccd22ebd00a4db2618a9d9ca34.zip
Performance and speed improvements.
Diffstat (limited to 'modules/textadept/snapopen.lua')
-rw-r--r--modules/textadept/snapopen.lua2
1 files changed, 1 insertions, 1 deletions
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