From e726ccb5eac47b3c3a141b9314f619b9f87a5149 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 6 Aug 2014 14:00:31 +0530 Subject: [PATCH] ... --- src/calibre/linux.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/linux.py b/src/calibre/linux.py index b06b467235..4e66676546 100644 --- a/src/calibre/linux.py +++ b/src/calibre/linux.py @@ -236,8 +236,8 @@ class ZshCompleter(object): # {{{ opf_opts=('--opf',), file_map={}): if not self.dest: return - exts = sorted(set(exts)) - extra = ('''"*:filename:_files -g '(#i)*.(%s)" ''' % '|'.join(exts),) + exts = sorted({x.lower() for x in exts}) + extra = ('''"*:filename:_files -g '(#i)*.(%s)'" ''' % '|'.join(exts),) opts = '\\\n '.join(tuple(self.get_options( op(), cover_opts=cover_opts, opf_opts=opf_opts, file_map=file_map)) + extra) txt = '_arguments -s \\\n ' + opts