aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/adeptsense.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-03-17 17:41:02 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-03-17 17:41:02 -0400
commita1179904c022d6ccd22ebd00a4db2618a9d9ca34 (patch)
tree825bae061b80facf01a5fbf921e9120042c4211c /modules/textadept/adeptsense.lua
parent8f061a7148266ce8d4a05459f7de680a47b8899e (diff)
downloadtextadept-a1179904c022d6ccd22ebd00a4db2618a9d9ca34.tar.gz
textadept-a1179904c022d6ccd22ebd00a4db2618a9d9ca34.zip
Performance and speed improvements.
Diffstat (limited to 'modules/textadept/adeptsense.lua')
-rw-r--r--modules/textadept/adeptsense.lua2
1 files changed, 1 insertions, 1 deletions
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 = {} }