From 790963321d4fa792db1c632de6d30ee85eb4af64 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 19 Mar 2014 01:09:56 -0400 Subject: [PATCH] Tweak limits for checking other files References #8. --- plugin/sleuth.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/sleuth.vim b/plugin/sleuth.vim index 587745d..7bda603 100644 --- a/plugin/sleuth.vim +++ b/plugin/sleuth.vim @@ -136,9 +136,9 @@ 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:31] + for neighbor in split(glob(dir.'/'.pattern), "\n")[0:8] if neighbor !=# expand('%:p') && filereadable(neighbor) - call extend(options, s:guess(readfile(neighbor, '', 1024)), 'keep') + call extend(options, s:guess(readfile(neighbor, '', 256), 'keep') endif if s:apply_if_ready(options) let b:sleuth_culprit = neighbor