Skip to content

Commit 0ec2973

Browse files
committed
s:dobufread: use count with finddir
This function might need more fixes/changes, but using a count for now seems to be good.
1 parent e6a775e commit 0ec2973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plug.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ function! s:dobufread(names)
428428
for name in a:names
429429
let path = s:rtp(g:plugs[name]).'/**'
430430
for dir in ['ftdetect', 'ftplugin']
431-
if len(finddir(dir, path))
431+
if !empty(finddir(dir, path, 1))
432432
if exists('#BufRead')
433433
doautocmd BufRead
434434
endif

0 commit comments

Comments
 (0)