Fix check for haslocaldir()

This commit is contained in:
Tim Pope 2014-04-05 19:27:41 -04:00
parent 6130d01b33
commit f43fa99703

View File

@ -1460,7 +1460,7 @@ function! s:leiningen_connect(auto) abort
let portfile = s:leiningen_portfile() let portfile = s:leiningen_portfile()
if a:auto && empty(portfile) && exists(':Start') ==# 2 if a:auto && empty(portfile) && exists(':Start') ==# 2
let cd = has('*haslocaldir') && haslocaldir() ? 'lcd' : 'cd' let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd' : 'cd'
let cwd = getcwd() let cwd = getcwd()
try try
execute cd fnameescape(b:leiningen_root) execute cd fnameescape(b:leiningen_root)