mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-02-17 23:34:10 +08:00
correctly inject the accent highlight groups.
This commit is contained in:
@@ -26,13 +26,13 @@ describe 'section'
|
||||
Expect s == '%{airline#util#prepend("text",0)}%{airline#util#wrap("text",0)}'
|
||||
end
|
||||
|
||||
it 'should prefix with highlight group if provided'
|
||||
it 'should prefix with accent group if provided'
|
||||
call airline#parts#define('hi', {
|
||||
\ 'raw': 'hello',
|
||||
\ 'highlight': 'hlgroup',
|
||||
\ 'accent': 'red',
|
||||
\ })
|
||||
let s = airline#section#create(['hi'])
|
||||
Expect s == '%#hlgroup#hello'
|
||||
Expect s == '%#airline_accent_red#hello'
|
||||
end
|
||||
|
||||
it 'should parse out a section from the distro'
|
||||
|
||||
Reference in New Issue
Block a user