aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-06-27 23:18:48 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-06-27 23:18:48 -0400
commita5790e42bb64bd6405f4fde010a3c17efd02d005 (patch)
tree231d4cf446457e3447e06c14ace6284aeecda973 /modules
parentdef3782025457fe3ed04be34f93d34dd82b99454 (diff)
downloadtextadept-a5790e42bb64bd6405f4fde010a3c17efd02d005.tar.gz
textadept-a5790e42bb64bd6405f4fde010a3c17efd02d005.zip
Fixed bug introduced by stripping '_G' in Lua Adeptsense; modules/lua/init.lua
Diffstat (limited to 'modules')
-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.