Do not list __init__.py in /theme completion

This commit is contained in:
mathieui 2014-12-10 22:26:19 +01:00
parent 9667013304
commit 4c7a470dc8
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -57,7 +57,7 @@ def completion_theme(self, the_input):
except OSError as e:
log.error('Completion for /theme failed', exc_info=True)
return
theme_files = [name[:-3] for name in names if name.endswith('.py')]
theme_files = [name[:-3] for name in names if name.endswith('.py') and name != '__init__.py']
if not 'default' in theme_files:
theme_files.append('default')
return the_input.new_completion(theme_files, 1, '', quotify=False)