improve performance with accent cache (#326).

This commit is contained in:
Bailey Ling
2013-11-01 00:54:10 -04:00
parent de1d1e365e
commit 99b7cdf334
3 changed files with 11 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ describe 'highlighter'
Expect exists('g:airline#themes#dark#palette.normal.airline_c_red') to_be_false
Expect hlID('airline_c_red') == 0
call airline#themes#patch(g:airline#themes#dark#palette)
call airline#highlighter#add_accent('red')
call airline#highlighter#highlight(['normal'])
Expect hlID('airline_c_red') != 0
end