Skip to content

Commit 24be951

Browse files
committed
Add check for haslocaldir()
1 parent b71bec4 commit 24be951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/dispatch.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ function! s:cgetfile(request, all, copen) abort
644644
let efm = &l:efm
645645
let makeprg = &l:makeprg
646646
let compiler = get(b:, 'current_compiler', '')
647-
let cd = haslocaldir() ? 'lcd' : 'cd'
647+
let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd' : 'cd'
648648
let dir = getcwd()
649649
let modelines = &modelines
650650
try

0 commit comments

Comments
 (0)