From 93b9fa7c75b40a99cb4ea5ffff76c433473fa120 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Wed, 11 Sep 2013 21:01:25 +0000 Subject: [PATCH] fix spacing when both trailing/indent occurs. --- autoload/airline/extensions/whitespace.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/airline/extensions/whitespace.vim b/autoload/airline/extensions/whitespace.vim index 66917ad..a9d9cb0 100644 --- a/autoload/airline/extensions/whitespace.vim +++ b/autoload/airline/extensions/whitespace.vim @@ -38,14 +38,14 @@ function! airline#extensions#whitespace#check() endif if trailing != 0 || mixed - let b:airline_whitespace_check = s:symbol.' ' + let b:airline_whitespace_check = s:symbol if s:show_message if trailing != 0 - let b:airline_whitespace_check .= printf(s:trailing_format, trailing) + let b:airline_whitespace_check .= ' '.printf(s:trailing_format, trailing) endif if mixed 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