Off by one

This commit is contained in:
Tim Pope 2014-03-19 11:45:10 -04:00
parent 612e4296c1
commit 6b0c9d61e2
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ function! s:detect() abort
let dir = expand('%:p:h')
while isdirectory(dir) && dir !=# fnamemodify(dir, ':h')
for pattern in patterns
for neighbor in split(glob(dir.'/'.pattern), "\n")[0:8]
for neighbor in split(glob(dir.'/'.pattern), "\n")[0:7]
if neighbor !=# expand('%:p') && filereadable(neighbor)
call extend(options, s:guess(readfile(neighbor, '', 256)), 'keep')
endif