diff options
author | 2009-01-25 21:09:41 -0500 | |
---|---|---|
committer | 2009-01-25 21:09:41 -0500 | |
commit | 2066415f82ba4fdda8d6f3020024d9fbf997e3da (patch) | |
tree | 4d7f591a9d02ac48ad024a2956f8f13ef26f6a1c /core/init.lua | |
parent | f0dceb28f133d8392c8947155dc8582ec7737783 (diff) | |
download | textadept-2066415f82ba4fdda8d6f3020024d9fbf997e3da.tar.gz textadept-2066415f82ba4fdda8d6f3020024d9fbf997e3da.zip |
Replaced str:match with str:find where applicable for speed improvements.
Diffstat (limited to 'core/init.lua')
-rw-r--r-- | core/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/init.lua b/core/init.lua index 7b547334..1df0f514 100644 --- a/core/init.lua +++ b/core/init.lua @@ -91,7 +91,7 @@ function cocoa_dialog(kind, opts) local args = { kind } for k, v in pairs(opts) do args[#args + 1] = '--'..k - if k == 'items' and kind:match('dropdown') then + if k == 'items' and kind:find('dropdown') then if not MAC then for item in v:gmatch('"(.-)"%s+') do args[#args + 1] = item end else |