diff options
author | 2011-03-03 18:22:26 -0500 | |
---|---|---|
committer | 2011-03-03 18:22:26 -0500 | |
commit | fb9d3882a2db293eac04b18c0ca2995960f41b7e (patch) | |
tree | a2a2f7a5ec7dc69b87fda5c8e6f5dfaa2186eb59 /modules/textadept/adeptsense.lua | |
parent | 6127f52ac00908e1e7d57df9c4da847d3a4d49a4 (diff) | |
download | textadept-fb9d3882a2db293eac04b18c0ca2995960f41b7e.tar.gz textadept-fb9d3882a2db293eac04b18c0ca2995960f41b7e.zip |
Use context class in get_apidoc() if necessary; modules/textadept/adeptsense.lua
Diffstat (limited to 'modules/textadept/adeptsense.lua')
-rw-r--r-- | modules/textadept/adeptsense.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua index ee5be228..80cd67bb 100644 --- a/modules/textadept/adeptsense.lua +++ b/modules/textadept/adeptsense.lua @@ -553,6 +553,7 @@ function get_apidoc(sense, symbol) -- back to the entity itself. In order for this to work, the first line in the -- apidoc must start with the entity (e.g. Class.function). local class = sense.completions[entity] or sense:get_class(entity) + if entity == '' then class = sense:get_class(entity) end if type(class) ~= 'string' then class = entity end -- fall back to entity for i, apidoc in ipairs(apidocs) do if apidoc:sub(1, #class) == class then |