Fix ctrlp memory leak

This commit is contained in:
Konstantinos Natsakis 2019-01-17 15:34:19 +02:00
parent fa5910eb14
commit 53aa65a5ce

View File

@ -76,11 +76,11 @@ function! airline#highlighter#get_highlight(group, ...)
let fg = s:get_syn(a:group, 'fg')
let bg = s:get_syn(a:group, 'bg')
let bold = synIDattr(synIDtrans(hlID(a:group)), 'bold')
let opts = a:000
if bold
let opts = ['bold']
if reverse
let res = s:get_array(bg, fg, bold ? ['bold'] : a:000)
else
let res = s:get_array(fg, bg, bold ? ['bold'] : a:000)
endif
let res = reverse ? s:get_array(bg, fg, opts) : s:get_array(fg, bg, opts)
endif
let s:hl_groups[a:group] = res
return res