diff options
author | 2011-03-07 00:17:02 -0500 | |
---|---|---|
committer | 2011-03-07 00:17:02 -0500 | |
commit | dbeae69d61a3085a32c07ffb4d5eb0db34e8ad73 (patch) | |
tree | a8a6979deedfb4918b189d8bc7b071e4fe352777 /modules/textadept/adeptsense.lua | |
parent | 4016292a45a291fc11fb954c2a304c16b186d25b (diff) | |
download | textadept-dbeae69d61a3085a32c07ffb4d5eb0db34e8ad73.tar.gz textadept-dbeae69d61a3085a32c07ffb4d5eb0db34e8ad73.zip |
Do not overwrite existing completions; modules/textadept/adeptsense.lua
Diffstat (limited to 'modules/textadept/adeptsense.lua')
-rw-r--r-- | modules/textadept/adeptsense.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua index 01acbed2..9f4eb334 100644 --- a/modules/textadept/adeptsense.lua +++ b/modules/textadept/adeptsense.lua @@ -415,7 +415,6 @@ end local function add_inherited(sense, class, only_fields, only_funcs, c, added) local inherited_classes = sense.inherited_classes[class] if not inherited_classes or added[class] then return end - _G.print(class, inherited_classes) local completions = sense.completions for _, inherited_class in ipairs(inherited_classes) do local inherited_completions = completions[inherited_class] @@ -663,7 +662,9 @@ function load_ctags(sense, tag_file, nolocations) -- Even though this class inherits fields and functions from others, -- an empty completions table needs to be added to it so -- get_completions() does not return prematurely. - completions[tag_name] = { fields = {}, functions = {} } + if not completions[tag_name] then + completions[tag_name] = { fields = {}, functions = {} } + end end end -- Update completions. |