From a1179904c022d6ccd22ebd00a4db2618a9d9ca34 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 17 Mar 2011 17:41:02 -0400 Subject: Performance and speed improvements. --- modules/textadept/adeptsense.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/textadept/adeptsense.lua') diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua index a1dfc03c..95de505e 100644 --- a/modules/textadept/adeptsense.lua +++ b/modules/textadept/adeptsense.lua @@ -635,7 +635,7 @@ function load_ctags(sense, tag_file, nolocations) -- Update completions. -- If no class structure is found, the global namespace is used. for _, key in ipairs{ 'class', 'interface', 'struct', 'union', '' } do - local class = (#key == 0) and '' or ext_fields:match(key..':(%S+)') + local class = (key == '') and '' or ext_fields:match(key..':(%S+)') if class then if not completions[class] then completions[class] = { fields = {}, functions = {} } -- cgit v1.2.3