mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-05-19 23:09:47 +08:00
support for conditional parts. resolves #238.
This commit is contained in:
@@ -25,5 +25,10 @@ describe 'parts'
|
||||
call airline#parts#define_minwidth('mw', 123)
|
||||
Expect airline#parts#get('mw').minwidth == 123
|
||||
end
|
||||
|
||||
it 'can define a condition'
|
||||
call airline#parts#define_condition('part', '1')
|
||||
Expect airline#parts#get('part').condition == '1'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user