fix deoplete get_complete_position
deoplete requires get_complete_position with input_pattern
@@ -30,6 +30,11 @@ class Source(Base):
self.__results = {}
self.__errors = {}
+ def get_complete_position(self, context):
+ m = re.search('(?:' + context['keyword_patterns'] + ')*$',
+ context['input'])
+ return m.start() if m else -1
+
def handleCompletionResult(self, items, contextid):
self.__results[contextid] = items
