This commit is contained in:
Daniel Hahler 2019-05-10 03:04:52 +00:00 committed by GitHub
commit a1230db602
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -436,7 +436,7 @@ function! s:dobufread(names)
for name in a:names
let path = s:rtp(g:plugs[name]).'/**'
for dir in ['ftdetect', 'ftplugin']
if len(finddir(dir, path))
if !empty(finddir(dir, path, 1))
if exists('#BufRead')
doautocmd BufRead
endif