Skip to content

Commit

Permalink
Check indentation with 1024 lines as fallback, fixes #588
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerun committed Oct 14, 2020
1 parent ba11e0f commit e95c5f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ftdetect/polyglot.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e95c5f4

Please sign in to comment.