test the layout config for the default extension.

This commit is contained in:
Bailey Ling
2013-08-30 22:44:20 -04:00
parent e852fb388f
commit d268744077
3 changed files with 26 additions and 1 deletions

View File

@@ -27,7 +27,9 @@ function! airline#extensions#branch#get_head()
endif
endif
return empty(head) ? s:empty_message : s:symbol.' '.head
return empty(head)
\ ? s:empty_message
\ : printf('%s%s', empty(s:symbol) ? '' : s:symbol.' ', head)
endfunction
function! airline#extensions#branch#init(ext)