awful.completion: sort matches

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
koniu 2009-08-08 12:11:51 +01:00 committed by Julien Danjou
parent 9c70c77fb2
commit 8b36cb7ce4
1 changed files with 2 additions and 1 deletions

View File

@ -137,7 +137,8 @@ function shell(command, cur_pos, ncomp, shell)
return command, cur_pos return command, cur_pos
end end
-- cycle -- sort and cycle
table.sort(output)
while ncomp > #output do while ncomp > #output do
ncomp = ncomp - #output ncomp = ncomp - #output
end end