Simplify get_complete_position.
@@ -53,8 +53,7 @@ class Source(Base):
logger.info("deoplete LanguageClientSource initialized.")
def get_complete_position(self, context):
- m = re.search('(?:' + context['keyword_patterns'] + ')*$',
- context['input'])
+ m = re.search('\w*$', context['input'])
return m.start() if m else -1
def gather_candidates(self, context):
