diff options
author | 2011-06-28 17:00:42 -0400 | |
---|---|---|
committer | 2011-06-28 17:00:42 -0400 | |
commit | c407317f84ae66afd5843b00237318f083a0eddd (patch) | |
tree | d592b6c7b1dd714057a258b930240c2584be7be5 /modules/lua/init.lua | |
parent | a5790e42bb64bd6405f4fde010a3c17efd02d005 (diff) | |
download | textadept-c407317f84ae66afd5843b00237318f083a0eddd.tar.gz textadept-c407317f84ae66afd5843b00237318f083a0eddd.zip |
Small Adeptsense improvements.
Diffstat (limited to 'modules/lua/init.lua')
-rw-r--r-- | modules/lua/init.lua | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/lua/init.lua b/modules/lua/init.lua index 83527685..9e0979ef 100644 --- a/modules/lua/init.lua +++ b/modules/lua/init.lua @@ -70,12 +70,11 @@ sense.ctags_kinds = { sense:load_ctags(_HOME..'/modules/lua/tags', true) -- Strips '_G' from symbols since it's implied. -function sense:get_class(symbol) - if symbol:find('^_G') then - symbol = symbol:gsub('_G%.?', '') - if symbol == '' then return '' end - end - return self.super.get_class(self, symbol) +function sense:get_symbol() + local symbol, part = self.super.get_symbol(self) + if symbol:find('^_G') then symbol = symbol:gsub('_G%.?', '') end + if part == '_G' then part = '' end + return symbol, part end -- Shows an autocompletion list for the symbol behind the caret. |