fix add_bracket_after_function had no effect (#1297)

* fix add_bracket_after_function had no effect

* added test for fix

* using monkeypatch to set add_bracket_after_function.
This commit is contained in:
Andreas Mittelberger
2019-04-13 00:41:02 +02:00
committed by Dave Halter
parent c801e24afc
commit e843c6108d
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -397,7 +397,7 @@ class Completion(BaseDefinition):
def _complete(self, like_name):
append = ''
if settings.add_bracket_after_function \
and self.type == 'Function':
and self.type == 'function':
append = '('
if self._name.api_type == 'param' and self._stack is not None: