diff options
author | 2009-01-25 21:09:41 -0500 | |
---|---|---|
committer | 2009-01-25 21:09:41 -0500 | |
commit | 2066415f82ba4fdda8d6f3020024d9fbf997e3da (patch) | |
tree | 4d7f591a9d02ac48ad024a2956f8f13ef26f6a1c /modules/textadept | |
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 'modules/textadept')
-rw-r--r-- | modules/textadept/editing.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua index 069135b2..972b52d8 100644 --- a/modules/textadept/editing.lua +++ b/modules/textadept/editing.lua @@ -136,7 +136,7 @@ function autocomplete_word_from_dict(dict) if not f then return end local c_list = {} for line in f:lines() do - if line:match('^'..root) then c_list[#c_list + 1] = line end + if line:find('^'..root) then c_list[#c_list + 1] = line end end f:close() if #c_list > 0 then buffer:auto_c_show(#root, table.concat(c_list, ' ')) end |