diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-10-27 22:08:29 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-10-27 22:08:29 +0900 |
commit | 775b03bbc6887654b26aef7d724f4fbf519becfd (patch) | |
tree | 633041a04ba28ef2be66b75daf5660bca4695ea2 /rplugin/python3 | |
parent | f31e03ca307bff59f012b3d5a073ad8f257d5663 (diff) | |
download | deoplete.nvim-775b03bbc6887654b26aef7d724f4fbf519becfd.zip |
Revert "Try file path before non-word characters."
This reverts commit 3e51d3dfa3190ea7bb8ca2da43847fc898ba0460.
Diffstat (limited to 'rplugin/python3')
-rw-r--r-- | rplugin/python3/deoplete/source/file.py | 3 |
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)) |