aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2011-06-27 23:18:48 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2011-06-27 23:18:48 -0400
commita5790e42bb64bd6405f4fde010a3c17efd02d005 (patch)
tree231d4cf446457e3447e06c14ace6284aeecda973 /modules/lua
parentdef3782025457fe3ed04be34f93d34dd82b99454 (diff)
Fixed bug introduced by stripping '_G' in Lua Adeptsense; modules/lua/init.lua
Diffstat (limited to 'modules/lua')
-rw-r--r--modules/lua/init.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/lua/init.lua b/modules/lua/init.lua
index f689867f..83527685 100644
--- a/modules/lua/init.lua
+++ b/modules/lua/init.lua
@@ -71,7 +71,11 @@ sense:load_ctags(_HOME..'/modules/lua/tags', true)
-- Strips '_G' from symbols since it's implied.
function sense:get_class(symbol)
- return self.super.get_class(self, symbol:gsub('_G%.?', ''))
+ if symbol:find('^_G') then
+ symbol = symbol:gsub('_G%.?', '')
+ if symbol == '' then return '' end
+ end
+ return self.super.get_class(self, symbol)
end
-- Shows an autocompletion list for the symbol behind the caret.