Mercurial > vim-gutentags
diff autoload/gutentags.vim @ 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 | 52be4cf89810 |
children | a282d08e0e7c |
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.