Skip to content

Commit 4b0c7d8

Browse files
pappasamautozimu
authored andcommitted
Remove get_complete_position; default is bug-free
Additionally, fixes a linting error associated with mutating the input_pattern string. Mutating that string seems unnecessary to me, and it requires reading the Deoplete source code to understand. This way, we're guaranteed that the regex represents the only input pattern we care about (it was adding to an empty string before, so this preserves current behavior).
1 parent 109f77f commit 4b0c7d8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

rplugin/python3/deoplete/sources/LanguageClientSource.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ def __init__(self, vim):
1414
self.min_pattern_length = 1
1515
self.filetypes = vim.eval(
1616
"get(g:, 'LanguageClient_serverCommands', {})").keys()
17-
self.input_pattern += r'(\.|::|->)\w*$'
18-
19-
def get_complete_position(self, context):
20-
return self.vim.call(
21-
'LanguageClient#get_complete_start', context['input'])
17+
self.input_pattern = r'(\.|::|->)\w*$'
2218

2319
def gather_candidates(self, context):
2420
if context["is_async"]:

0 commit comments

Comments
 (0)