mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-01-03 18:13:25 +08:00
support multiple accents in the same section (#203).
This commit is contained in:
@@ -44,6 +44,19 @@ describe 'active builder'
|
||||
let stl = s:builder.build()
|
||||
Expect stl == '%#Normal#%#Normal_foo#hello'
|
||||
end
|
||||
|
||||
it 'should replace two accent groups with correct groups'
|
||||
call s:builder.add_section('Normal', '%#airline_accent_foo#hello%#airline_accent_bar#world')
|
||||
let stl = s:builder.build()
|
||||
Expect stl =~ '%#Normal_foo#hello%#Normal_bar#world'
|
||||
end
|
||||
|
||||
it 'should special restore group should go back to previous group'
|
||||
call s:builder.add_section('Normal', '%#__restore__#')
|
||||
let stl = s:builder.build()
|
||||
Expect stl !~ '%#__restore__#'
|
||||
Expect stl =~ '%#Normal#'
|
||||
end
|
||||
end
|
||||
|
||||
describe 'inactive builder'
|
||||
|
||||
Reference in New Issue
Block a user