summaryrefslogtreecommitdiff
path: root/rplugin
diff options
context:
space:
mode:
Diffstat (limited to 'rplugin')
-rw-r--r--rplugin/python3/deoplete/filter/converter_remove_overlap.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/rplugin/python3/deoplete/filter/converter_remove_overlap.py b/rplugin/python3/deoplete/filter/converter_remove_overlap.py
index f3e2a04..0146bbc 100644
--- a/rplugin/python3/deoplete/filter/converter_remove_overlap.py
+++ b/rplugin/python3/deoplete/filter/converter_remove_overlap.py
@@ -21,11 +21,8 @@ class Filter(Base):
def filter(self, context: UserContext) -> Candidates:
if not context['next_input']:
return context['candidates'] # type: ignore
- m = re.match(r'\S+', context['next_input'])
- if not m:
- return context['candidates'] # type: ignore
next_input_words = [x for x in re.split(
- r'([a-zA-Z_]+|\W)', m.group(0)) if x]
+ r'([a-zA-Z_]+|\W)', context['next_input']) if x]
check_pairs = []
if self.vim.call('searchpair', '(', '', ')', 'bnw'):