Off by one
This commit is contained in:
parent
612e4296c1
commit
6b0c9d61e2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue