aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-09-30 21:51:14 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2010-09-30 21:51:14 -0400
commit6a3fce56e7d707774b23f9a057534f0523bff7c4 (patch)
treeffee2f3ac6e5544f5563ba4f2255b29a3ddddc0c
parent4779c4b32bcae8be98145352c2ba05d88bc75de0 (diff)
downloadtextadept-6a3fce56e7d707774b23f9a057534f0523bff7c4.tar.gz
textadept-6a3fce56e7d707774b23f9a057534f0523bff7c4.zip
Performance improvement; 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 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