diff options
-rw-r--r-- | modules/textadept/adeptsense.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua index 4786360d..f8c7dac0 100644 --- a/modules/textadept/adeptsense.lua +++ b/modules/textadept/adeptsense.lua @@ -109,6 +109,9 @@ function get_completions(sense, symbol, only_fields, only_functions) end if not only_functions then for _, v in ipairs(compls[class].fields) do c[#c + 1] = v end + if include_globals then + for _, v in ipairs(compls[''].fields) do c[#c + 1] = v end + end end for _, inherited in ipairs(sense.class_list[class] or {}) do if compls[inherited] then |