diff options
Diffstat (limited to 'modules/textadept')
-rw-r--r-- | modules/textadept/command_entry.lua | 1 | ||||
-rw-r--r-- | modules/textadept/snippets.lua | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/textadept/command_entry.lua b/modules/textadept/command_entry.lua index b1227c27..b335774c 100644 --- a/modules/textadept/command_entry.lua +++ b/modules/textadept/command_entry.lua @@ -160,6 +160,7 @@ local function complete_lua() end end table.sort(cmpls) + M.auto_c_order = buffer.ORDER_PRESORTED M:auto_c_show(#part - 1, table.concat(cmpls, string.char(M.auto_c_separator))) end diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua index 73f46bde..a59884d8 100644 --- a/modules/textadept/snippets.lua +++ b/modules/textadept/snippets.lua @@ -440,6 +440,7 @@ snippet_mt = { if ph.choice then local sep = buffer.auto_c_separator buffer.auto_c_separator = string.byte(',') + buffer.auto_c_order = buffer.ORDER_CUSTOM buffer:auto_c_show(0, ph.choice) buffer.auto_c_separator = sep -- restore end |