summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-12-10 22:26:19 +0100
committermathieui <mathieui@mathieui.net>2014-12-10 22:26:19 +0100
commit4c7a470dc87686b724d9cfd67b6cb365156021ce (patch)
tree2e4e5815b5b4ddd8e613833537c3282ae48e9b26 /src
parent96670133041dc6c0f6dd3453b4e6e2ab38b92cdf (diff)
downloadpoezio-4c7a470dc87686b724d9cfd67b6cb365156021ce.tar.gz
poezio-4c7a470dc87686b724d9cfd67b6cb365156021ce.tar.bz2
poezio-4c7a470dc87686b724d9cfd67b6cb365156021ce.tar.xz
poezio-4c7a470dc87686b724d9cfd67b6cb365156021ce.zip
Do not list __init__.py in /theme completion
Diffstat (limited to 'src')
-rw-r--r--src/core/completions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/completions.py b/src/core/completions.py
index 612144f6..c398e886 100644
--- a/src/core/completions.py
+++ b/src/core/completions.py
@@ -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)