Verified Commit 4c7a470d authored by mathieui's avatar mathieui

Do not list in /theme completion

parent 96670133
......@@ -57,7 +57,7 @@ def completion_theme(self, the_input):
except OSError as e:
log.error('Completion for /theme failed', exc_info=True)
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 != '']
if not 'default' in theme_files:
return the_input.new_completion(theme_files, 1, '', quotify=False)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment