comparison autoload/gutentags.vim @ 260:a282d08e0e7c

Revert previous change, it's breaking paths with spaces on unix.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 05 Feb 2020 21:22:55 -0800
parents 74a71a5499c9
children dc9216fc0c0f
comparison
equal deleted inserted replaced
259:c053f27652cd 260:a282d08e0e7c
6 if has('nvim') 6 if has('nvim')
7 let chdir = haslocaldir() ? 'lcd' : haslocaldir(-1, 0) ? 'tcd' : 'cd' 7 let chdir = haslocaldir() ? 'lcd' : haslocaldir(-1, 0) ? 'tcd' : 'cd'
8 else 8 else
9 let chdir = haslocaldir() ? 'lcd' : 'cd' 9 let chdir = haslocaldir() ? 'lcd' : 'cd'
10 endif 10 endif
11 execute chdir substitute(a:path,'[\\/]\+','/','g') 11 execute chdir a:path
12 endfunction 12 endfunction
13 13
14 " Throw an exception message. 14 " Throw an exception message.
15 function! gutentags#throw(message) 15 function! gutentags#throw(message)
16 throw "gutentags: " . a:message 16 throw "gutentags: " . a:message