awful.completion: sort matches
Signed-off-by: koniu <gkusnierz@gmail.com> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
9c70c77fb2
commit
8b36cb7ce4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue