aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/adeptsense.lua
diff options
context:
space:
mode:
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 = {} }