From 04e2c0ee4c69682f263bc0f210832b39820ddd30 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 13 Feb 2011 14:09:19 -0500 Subject: Show completions for current context too; modules/textadept/adeptsense.lua --- modules/textadept/adeptsense.lua | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3