Skip to content

Commit 0cd626a

Browse files
committed
Fix deoplete cache.
1 parent 53791f3 commit 0cd626a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rplugin/python3/deoplete/sources/LanguageClientSource.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ def __init__(self, vim):
2727
def get_complete_position(self, context):
2828
m = re.search('(?:' + context['keyword_patterns'] + ')$',
2929
context['input'])
30-
if not m:
31-
m = re.search(self.__keyword_patterns, context['input'])
32-
return m.end() if m else -1
30+
if m:
31+
return m.start()
32+
33+
m = re.search(self.__keyword_patterns, context['input'])
34+
if m:
35+
return m.end()
36+
37+
return -1
3338

3439
def gather_candidates(self, context):
3540
if not context["is_async"]:

0 commit comments

Comments
 (0)