diff options
author | 2010-09-30 21:51:14 -0400 | |
---|---|---|
committer | 2010-09-30 21:51:14 -0400 | |
commit | 6a3fce56e7d707774b23f9a057534f0523bff7c4 (patch) | |
tree | ffee2f3ac6e5544f5563ba4f2255b29a3ddddc0c /modules/textadept/snapopen.lua | |
parent | 4779c4b32bcae8be98145352c2ba05d88bc75de0 (diff) | |
download | textadept-6a3fce56e7d707774b23f9a057534f0523bff7c4.tar.gz textadept-6a3fce56e7d707774b23f9a057534f0523bff7c4.zip |
Performance improvement; modules/textadept/snapopen.lua
Diffstat (limited to 'modules/textadept/snapopen.lua')
-rw-r--r-- | modules/textadept/snapopen.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/snapopen.lua b/modules/textadept/snapopen.lua index 56afcaa1..d4b1471b 100644 --- a/modules/textadept/snapopen.lua +++ b/modules/textadept/snapopen.lua @@ -62,7 +62,7 @@ end -- @param depth The current depth of nested folders.
-- @param filter The filter table.
local function add_directory(dir, list, depth, filter)
- local string_match, string_gsub = string.match, string.gsub
+ local string_match, string_gsub, MAX = string.match, string.gsub, MAX
for file in lfs.dir(dir) do
if not string_match(file, '^%.%.?$') then
file = dir..(not WIN32 and '/' or '\\')..file
|