aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/adeptsense.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept/adeptsense.lua')
-rw-r--r--modules/textadept/adeptsense.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua
index b4fe061d..74998977 100644
--- a/modules/textadept/adeptsense.lua
+++ b/modules/textadept/adeptsense.lua
@@ -586,6 +586,7 @@ function M.complete(sense, only_fields, only_functions)
buffer:register_image(1, M.FIELDS)
buffer:register_image(2, M.FUNCTIONS)
if not buffer.auto_c_choose_single or #completions ~= 1 then
+ buffer.auto_c_order = 0 -- pre-sorted
buffer:auto_c_show(#part, table.concat(completions, ' '))
else
-- Scintilla does not emit `AUTO_C_SELECTION` in this case. This is