summaryrefslogtreecommitdiff
path: root/rplugin/python3
diff options
context:
space:
mode:
Diffstat (limited to 'rplugin/python3')
-rw-r--r--rplugin/python3/deoplete/source/file.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/rplugin/python3/deoplete/source/file.py b/rplugin/python3/deoplete/source/file.py
index 819de37..4ffc04e 100644
--- a/rplugin/python3/deoplete/source/file.py
+++ b/rplugin/python3/deoplete/source/file.py
@@ -58,8 +58,7 @@ class Source(Base):
] + [{'word': x} for x in files]
def __longest_path_that_exists(self, context, input_str):
- data = re.split(r'((?:%s+|(?<![\w\s])(?:~|\.{1,2})?/))' %
- self.__isfname, input_str)
+ data = re.split(r'(%s+)' % self.__isfname, input_str)
data = [''.join(data[i:]) for i in range(len(data))]
existing_paths = sorted(filter(lambda x: exists(
dirname(self.__substitute_path(context, x))), data))