mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-11 13:03:50 -05:00
Check indentation with 1024 lines as fallback, fixes #588
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user