aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/textadept/editing.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index b078d4fb..6c87951e 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -202,6 +202,7 @@ function autocomplete_word(word_chars)
buffer.target_start, buffer.target_end = match_pos + 1, buffer.length
match_pos = buffer:search_in_target(root)
end
+ table.sort(c_list)
if #c_list > 0 then
if not buffer.auto_c_choose_single or #c_list ~= 1 then
buffer:auto_c_show(#root, table.concat(c_list, ' '))