Mercurial > vim-gutentags
changeset 258:74a71a5499c9
Purge path before chdir
When gutentags try to chdir to a path like E:\\\\vim\\good\\, it will fail.
So we need remove duplicate pathseps.
And "/" works on windows. So I replace all pathsep to '/'
author | zoumi <zoumi@users.noreply.github.com> |
---|---|
date | Sun, 19 Jan 2020 11:13:13 +0800 |
parents | 81d51b4a2a78 |
children | c053f27652cd |
files | autoload/gutentags.vim |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/autoload/gutentags.vim Sat Mar 30 14:00:22 2019 +0800 +++ b/autoload/gutentags.vim Sun Jan 19 11:13:13 2020 +0800 @@ -8,7 +8,7 @@ else let chdir = haslocaldir() ? 'lcd' : 'cd' endif - execute chdir a:path + execute chdir substitute(a:path,'[\\/]\+','/','g') endfunction " Throw an exception message.