From 6a3fce56e7d707774b23f9a057534f0523bff7c4 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 30 Sep 2010 21:51:14 -0400 Subject: Performance improvement; modules/textadept/snapopen.lua --- 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 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 -- cgit v1.2.3