From 9593e76b3909ea4a8be1755e4f6fd0b9b8857fed Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 25 Nov 2014 22:35:39 -0500 Subject: Include buffer constants in completions; modules/textadept/command_entry.lua --- modules/textadept/command_entry.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/textadept/command_entry.lua b/modules/textadept/command_entry.lua index 64f92c1f..800708f2 100644 --- a/modules/textadept/command_entry.lua +++ b/modules/textadept/command_entry.lua @@ -164,8 +164,8 @@ local function complete_lua() if f:find(part) then cmpls[#cmpls + 1] = f end end elseif symbol == 'buffer' and op == '.' then - for p in pairs(_SCINTILLA.properties) do - if p:find(part) then cmpls[#cmpls + 1] = p end + for _, t in ipairs{_SCINTILLA.properties, _SCINTILLA.constants} do + for p in pairs(t) do if p:find(part) then cmpls[#cmpls + 1] = p end end end end end -- cgit v1.2.3