use code 160 for space to fix rendering problems.

This commit is contained in:
Bailey Ling committed 2013-09-18 22:23:50 -04:00
1 parent 2d465afb95
commit 948a4178a8
6 files changed
+19 -15

No files matched your search

+3 -2
View File
@@ -2,6 +2,7 @@
" vim: et ts=2 sts=2 sw=2
call airline#init#bootstrap()
let s:spc = g:airline_symbols.space
function! airline#util#wrap(text, minwidth)
if a:minwidth > 0 && winwidth(0) < a:minwidth
@@ -14,14 +15,14 @@ function! airline#util#append(text, minwidth)
if a:minwidth > 0 && winwidth(0) < a:minwidth
return ''
endif
return empty(a:text) ? '' : ' '.g:airline_left_alt_sep.' '.a:text
return empty(a:text) ? '' : s:spc.g:airline_left_alt_sep.s:spc.a:text
endfunction
function! airline#util#prepend(text, minwidth)
if a:minwidth > 0 && winwidth(0) < a:minwidth
return ''
endif
return empty(a:text) ? '' : a:text.' '.g:airline_right_alt_sep.' '
return empty(a:text) ? '' : a:text.s:spc.g:airline_right_alt_sep.s:spc
endfunction
if v:version >= 704