Skip to content

Commit 8709e47

Browse files
authored
Merge pull request #126 from mgkurtz/reproducible
Make zsh completion reproducible
2 parents 1a103b6 + 91b8288 commit 8709e47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

script/texdoclib-util.tlu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ function M.print_zsh_completion()
241241
elseif type(opt['complete']) == 'table' then
242242
choices = opt['complete']
243243
end
244+
table.sort(choices)
244245
complete = '(' .. table.concat(choices, ' ') .. ')'
245246
if opt['complete'] == 'files' then
246247
opt['metavar'] = ' '

0 commit comments

Comments
 (0)