mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-05-11 09:08:25 +08:00
lazy load variables until needed (#204).
this allows users to define section variables in their vimrc.
This commit is contained in:
@@ -42,5 +42,11 @@ describe 'airline'
|
||||
call airline#update_statusline()
|
||||
Expect &statusline =~ 'helloworld'
|
||||
end
|
||||
|
||||
it 'should allow users to redefine sections'
|
||||
let g:airline_section_a = airline#section#create(['mode', 'mode'])
|
||||
call airline#update_statusline()
|
||||
Expect &statusline =~ '%{airline#util#wrap(airline#parts#mode(),0)}%{airline#util#wrap(airline#parts#mode(),0)}'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user