replace all instance of space with the no-break space. resolves #256.

This commit is contained in:
bling
2013-09-22 11:29:27 -04:00
parent b22190400d
commit bfe35ed76c
9 changed files with 21 additions and 12 deletions

View File

@@ -4,6 +4,10 @@
" we don't actually want this loaded :P
finish
" Due to some potential rendering issues, the use of the `space` variable is
" recommended.
let s:spc = g:airline_symbols.space
" Extension specific variables can be defined the usual fashion.
if !exists('g:airline#extensions#example#number_of_cats')
let g:airline#extensions#example#number_of_cats = 42
@@ -35,7 +39,7 @@ function! airline#extensions#example#apply(...)
let w:airline_section_c = get(w:, 'airline_section_c', g:airline_section_c)
" Then we just append this extenion to it, optionally using separators.
let w:airline_section_c .= ' '.g:airline_left_alt_sep.' %{airline#extensions#example#get_cats()}'
let w:airline_section_c .= s:spc.g:airline_left_alt_sep.s:spc.'%{airline#extensions#example#get_cats()}'
endif
endfunction