summaryrefslogtreecommitdiff
path: root/rplugin
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2019-11-26 21:01:53 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2019-11-26 21:01:53 +0900
commit41ab306416a951be661622d7b0d174fe74f84f7e (patch)
treebdff4401b934c377cdbb4b6647ca6b0a5faeea8b /rplugin
parent57cf7710a8dd51797bbbe5a45e67aef44caa126f (diff)
downloaddeoplete.nvim-41ab306416a951be661622d7b0d174fe74f84f7e.zip
Improve converter_remove_overlap
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'):