From fb9d3882a2db293eac04b18c0ca2995960f41b7e Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 3 Mar 2011 18:22:26 -0500 Subject: Use context class in get_apidoc() if necessary; modules/textadept/adeptsense.lua --- modules/textadept/adeptsense.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/textadept') 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 -- cgit v1.2.3