use at least 2 spaces to be considered an indent. fixes #177.

This commit is contained in:
Bailey Ling 2013-09-04 18:10:45 +00:00
parent 00e5e1c20e
commit 2066410156
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ function! airline#extensions#whitespace#check()
let mixed = 0
if index(s:checks, 'indent') > -1
let indents = [search('^ ', 'nb'), search('^ ', 'n'), search('^\t', 'nb'), search('^\t', 'n')]
let indents = [search('^ \{2,}', 'nb'), search('^ \{2,}', 'n'), search('^\t', 'nb'), search('^\t', 'n')]
let mixed = indents[0] != 0 && indents[1] != 0 && indents[2] != 0 && indents[3] != 0
endif