Fix check for haslocaldir()
This commit is contained in:
parent
6130d01b33
commit
f43fa99703
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user