use tr() instead of substitute
should be a bit faster
This commit is contained in:
parent
14691bb00e
commit
9dc546c699
@ -98,7 +98,7 @@ endfunction
|
||||
function! airline#switch_matching_theme()
|
||||
if exists('g:colors_name')
|
||||
let existing = g:airline_theme
|
||||
let theme = substitute(tolower(g:colors_name), '-', '_', 'g')
|
||||
let theme = tr(tolower(g:colors_name), '-', '_')
|
||||
try
|
||||
call airline#switch_theme(theme)
|
||||
return 1
|
||||
|
Loading…
Reference in New Issue
Block a user