Commit 1a1b1cb4 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Autocompletion - replace all dash with underscores

parent 236b7419
......@@ -52,7 +52,8 @@ class Completer(QGraphicsProxyWidget, object):
def set_completer_list(self):
''' Set list of items for the autocompleter popup '''
compl = list(self.parent.parentItem().completion_list)
compl = [item.replace('-', '_') for item in
self.parent.parentItem().completion_list]
self.string_list.setStringList(compl)
self._completer.setModel(self.string_list)
......
Supports Markdown
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