From e95c5f49aae37ac650fa1078032e61d8cc42af62 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 14 Oct 2020 23:37:38 +0200 Subject: [PATCH] Check indentation with 1024 lines as fallback, fixes #588 --- ftdetect/polyglot.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 6794397be..c98c27d72 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -2735,6 +2735,9 @@ if !has_key(s:disabled_packages, 'autoindent') if s:guess(getline(1, 32)) return endif + if s:guess(getline(1, 1024)) + return + endif let pattern = polyglot#sleuth#GlobForFiletype(&filetype) if len(pattern) == 0 return