diff options
Diffstat (limited to 'modules/textadept/adeptsense.lua')
-rw-r--r-- | modules/textadept/adeptsense.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua index ace3a516..ee5be228 100644 --- a/modules/textadept/adeptsense.lua +++ b/modules/textadept/adeptsense.lua @@ -555,7 +555,7 @@ function get_apidoc(sense, symbol) local class = sense.completions[entity] or sense:get_class(entity) if type(class) ~= 'string' then class = entity end -- fall back to entity for i, apidoc in ipairs(apidocs) do - if apidoc:match('^['..word_chars..']+') == class then + if apidoc:sub(1, #class) == class then apidocs.pos = i break end |