summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-10-29 23:28:20 +0100
committermathieui <mathieui@mathieui.net>2014-10-29 23:28:20 +0100
commit616d0d2c7301f5e287fb7daf24a835f8dbf250ba (patch)
tree74359c909d7fdcf950b1736e66a21ebb2118c3ae /src/core
parent70befec8cad1633baee30530e353bca5da9b8d32 (diff)
downloadpoezio-616d0d2c7301f5e287fb7daf24a835f8dbf250ba.tar.gz
poezio-616d0d2c7301f5e287fb7daf24a835f8dbf250ba.tar.bz2
poezio-616d0d2c7301f5e287fb7daf24a835f8dbf250ba.tar.xz
poezio-616d0d2c7301f5e287fb7daf24a835f8dbf250ba.zip
Fix two potential tracebacks on /set completion
Diffstat (limited to 'src/core')
-rw-r--r--src/core/completions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/completions.py b/src/core/completions.py
index ca0bb41e..bc21a6c0 100644
--- a/src/core/completions.py
+++ b/src/core/completions.py
@@ -324,7 +324,7 @@ def completion_set(self, the_input):
if '|' in args[1]:
plugin_name, section = args[1].split('|')[:2]
if not plugin_name in self.plugin_manager.plugins:
- return the_input.auto_completion([''], n, quotify=True)
+ return the_input.new_completion([''], n, quotify=True)
plugin = self.plugin_manager.plugins[plugin_name]
end_list = plugin.config.options(section or plugin_name)
elif not config.has_option('Poezio', args[1]):
@@ -339,7 +339,7 @@ def completion_set(self, the_input):
if '|' in args[1]:
plugin_name, section = args[1].split('|')[:2]
if not plugin_name in self.plugin_manager.plugins:
- return the_input.auto_completion([''], n, quotify=True)
+ return the_input.new_completion([''], n, quotify=True)
plugin = self.plugin_manager.plugins[plugin_name]
end_list = [plugin.config.get(args[2], '', section or plugin_name), '']
else: