Skip to content

Commit

Permalink
s:dobufread: use count with finddir
Browse files Browse the repository at this point in the history
This function might need more fixes/changes, but using a count for now
seems to be good.
  • Loading branch information
blueyed committed Apr 17, 2018
1 parent e6a775e commit 0ec2973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,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
Expand Down

0 comments on commit 0ec2973

Please sign in to comment.