mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1736313 [zsh completion does not build reproducibly](https://bugs.launchpad.net/calibre/+bug/1736313)
This commit is contained in:
parent
631ca6393e
commit
9bd2332d2c
@ -329,7 +329,7 @@ class ZshCompleter(object): # {{{
|
|||||||
'--input-encoding' not in o._long_opts]
|
'--input-encoding' not in o._long_opts]
|
||||||
if not opts:
|
if not opts:
|
||||||
continue
|
continue
|
||||||
opts = '\\\n '.join(tuple(self.get_options(opts)))
|
opts = '\\\n '.join(tuple(sorted(self.get_options(opts))))
|
||||||
w('\n%s() {'%(func%fmt))
|
w('\n%s() {'%(func%fmt))
|
||||||
w('\n _arguments -s \\\n ' + opts)
|
w('\n _arguments -s \\\n ' + opts)
|
||||||
w('\n}\n')
|
w('\n}\n')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user