diff options
Diffstat (limited to 'modules/textadept')
-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
|