Browse Source

Avoid downward search when using finddir

Close #750
Junegunn Choi 6 years ago
parent
commit
08e78d8a5e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      plug.vim

+ 2 - 2
plug.vim

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