aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2014-11-25 22:35:39 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2014-11-25 22:35:39 -0500
commit9593e76b3909ea4a8be1755e4f6fd0b9b8857fed (patch)
treed839e85ae5246cee149eec174bfdcf11d6b9996a
parent4b2b6604c42697863c1c6651160ce0b0e9b4ae73 (diff)
downloadtextadept-9593e76b3909ea4a8be1755e4f6fd0b9b8857fed.tar.gz
textadept-9593e76b3909ea4a8be1755e4f6fd0b9b8857fed.zip
Include buffer constants in completions; modules/textadept/command_entry.lua
-rw-r--r--modules/textadept/command_entry.lua4
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