fix spacing when both trailing/indent occurs.

This commit is contained in:
Bailey Ling 2013-09-11 21:01:25 +00:00
parent 61de5d3949
commit 93b9fa7c75

View File

@ -38,14 +38,14 @@ function! airline#extensions#whitespace#check()
endif endif
if trailing != 0 || mixed if trailing != 0 || mixed
let b:airline_whitespace_check = s:symbol.' ' let b:airline_whitespace_check = s:symbol
if s:show_message if s:show_message
if trailing != 0 if trailing != 0
let b:airline_whitespace_check .= printf(s:trailing_format, trailing) let b:airline_whitespace_check .= ' '.printf(s:trailing_format, trailing)
endif endif
if mixed if mixed
let mixnr = indents[0] == indents[1] ? indents[0] : indents[2] let mixnr = indents[0] == indents[1] ? indents[0] : indents[2]
let b:airline_whitespace_check .= printf(s:mixed_indent_format, mixnr) let b:airline_whitespace_check .= ' '.printf(s:mixed_indent_format, mixnr)
endif endif
endif endif
endif endif