diff options
author | 2011-08-15 20:36:10 -0400 | |
---|---|---|
committer | 2011-08-15 20:36:10 -0400 | |
commit | 3d79016cfd2f3139aaf8d48a9736e051dd4e97aa (patch) | |
tree | fdaf950b1ba31c9117711710b13e8167b55ffaa0 /modules/textadept | |
parent | dc3170c5dae3ba31ed920c848ad6ff95857a1d59 (diff) | |
download | textadept-3d79016cfd2f3139aaf8d48a9736e051dd4e97aa.tar.gz textadept-3d79016cfd2f3139aaf8d48a9736e051dd4e97aa.zip |
Sort autocomplete word list; modules/textadept/editing.lua
Diffstat (limited to 'modules/textadept')
-rw-r--r-- | modules/textadept/editing.lua | 1 |
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, ' ')) |