This commit is contained in:
Kovid Goyal 2014-08-06 14:00:31 +05:30
parent cc5d335c22
commit e726ccb5ea

View File

@ -236,8 +236,8 @@ class ZshCompleter(object): # {{{
opf_opts=('--opf',), file_map={}): opf_opts=('--opf',), file_map={}):
if not self.dest: if not self.dest:
return return
exts = sorted(set(exts)) exts = sorted({x.lower() for x in exts})
extra = ('''"*:filename:_files -g '(#i)*.(%s)" ''' % '|'.join(exts),) extra = ('''"*:filename:_files -g '(#i)*.(%s)'" ''' % '|'.join(exts),)
opts = '\\\n '.join(tuple(self.get_options( opts = '\\\n '.join(tuple(self.get_options(
op(), cover_opts=cover_opts, opf_opts=opf_opts, file_map=file_map)) + extra) op(), cover_opts=cover_opts, opf_opts=opf_opts, file_map=file_map)) + extra)
txt = '_arguments -s \\\n ' + opts txt = '_arguments -s \\\n ' + opts