Revert "inactivate existing statusline without building a new one."

This reverts commit 53b856b0c5.
This commit is contained in:
Bailey Ling
2013-08-24 01:08:22 -04:00
parent 511411d55e
commit 04daa66b48
2 changed files with 11 additions and 9 deletions

View File

@@ -24,11 +24,15 @@ function! s:prototype.add_raw(text)
endfunction
function! s:prototype.build()
if !self._context.active
let self._line = substitute(self._line, '%#.\{-}\ze#', '\0_inactive', 'g')
endif
return self._line
endfunction
function! airline#builder#new(highlighter)
function! airline#builder#new(context, highlighter)
let builder = copy(s:prototype)
let builder._context = a:context
let builder._highlighter = a:highlighter
let builder._side = 1
let builder._curgroup = ''