diff options
author | 2014-11-25 22:35:39 -0500 | |
---|---|---|
committer | 2014-11-25 22:35:39 -0500 | |
commit | 9593e76b3909ea4a8be1755e4f6fd0b9b8857fed (patch) | |
tree | d839e85ae5246cee149eec174bfdcf11d6b9996a /modules/textadept | |
parent | 4b2b6604c42697863c1c6651160ce0b0e9b4ae73 (diff) | |
download | textadept-9593e76b3909ea4a8be1755e4f6fd0b9b8857fed.tar.gz textadept-9593e76b3909ea4a8be1755e4f6fd0b9b8857fed.zip |
Include buffer constants in completions; modules/textadept/command_entry.lua
Diffstat (limited to 'modules/textadept')
-rw-r--r-- | modules/textadept/command_entry.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |