aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/editing.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-08-15 20:36:10 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-08-15 20:36:10 -0400
commit3d79016cfd2f3139aaf8d48a9736e051dd4e97aa (patch)
treefdaf950b1ba31c9117711710b13e8167b55ffaa0 /modules/textadept/editing.lua
parentdc3170c5dae3ba31ed920c848ad6ff95857a1d59 (diff)
downloadtextadept-3d79016cfd2f3139aaf8d48a9736e051dd4e97aa.tar.gz
textadept-3d79016cfd2f3139aaf8d48a9736e051dd4e97aa.zip
Sort autocomplete word list; modules/textadept/editing.lua
Diffstat (limited to 'modules/textadept/editing.lua')
-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, ' '))