feat: Allow exclude files with no 'filetype' set

Closes #135 & #122
This commit is contained in:
Sergey Vlasov
2017-03-28 17:35:55 +03:00
committed by Caleb Maclennan
parent d96c8182d1
commit 9a106c73f6
2 changed files with 5 additions and 3 deletions

View File

@@ -286,7 +286,7 @@ function! indent_guides#exclude_filetype() abort
return 1
endif
endif
for ft in split(&ft, '\.')
for ft in split(&ft, '\.', 1)
if index(g:indent_guides_exclude_filetypes, ft) > -1
return 1
end