From 91b8288e30cfe9545a32e7bfddb682692d868426 Mon Sep 17 00:00:00 2001 From: Markus Kurtz Date: Sun, 2 Feb 2025 17:56:16 +0100 Subject: [PATCH] Make zsh completion reproducible --- script/texdoclib-util.tlu | 1 + 1 file changed, 1 insertion(+) diff --git a/script/texdoclib-util.tlu b/script/texdoclib-util.tlu index 445bfaf..8d71f29 100644 --- a/script/texdoclib-util.tlu +++ b/script/texdoclib-util.tlu @@ -241,6 +241,7 @@ function M.print_zsh_completion() elseif type(opt['complete']) == 'table' then choices = opt['complete'] end + table.sort(choices) complete = '(' .. table.concat(choices, ' ') .. ')' if opt['complete'] == 'files' then opt['metavar'] = ' '