From 0c20e9b24b939ba0abf0a566c6636d05f9a2a250 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 4 Aug 2020 11:07:11 -0400 Subject: Set `buffer.auto_c_order` prior to `buffer:auto_c_show()`. This is good practice. --- modules/textadept/command_entry.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/textadept/command_entry.lua') 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 -- cgit v1.2.3