Check indentation with 1024 lines as fallback, fixes #588

This commit is contained in:
Adam Stankiewicz
2020-10-14 23:37:38 +02:00
parent ba11e0f1ad
commit e95c5f49aa

View File

@@ -2735,6 +2735,9 @@ if !has_key(s:disabled_packages, 'autoindent')
if s:guess(getline(1, 32)) if s:guess(getline(1, 32))
return return
endif endif
if s:guess(getline(1, 1024))
return
endif
let pattern = polyglot#sleuth#GlobForFiletype(&filetype) let pattern = polyglot#sleuth#GlobForFiletype(&filetype)
if len(pattern) == 0 if len(pattern) == 0
return return