Merge pull request #1859 from knatsakis/no-ctrlp-memleak
Fix ctrlp memory leak
This commit is contained in:
commit
e0bde5dea4
@ -76,11 +76,11 @@ function! airline#highlighter#get_highlight(group, ...)
|
|||||||
let fg = s:get_syn(a:group, 'fg')
|
let fg = s:get_syn(a:group, 'fg')
|
||||||
let bg = s:get_syn(a:group, 'bg')
|
let bg = s:get_syn(a:group, 'bg')
|
||||||
let bold = synIDattr(synIDtrans(hlID(a:group)), 'bold')
|
let bold = synIDattr(synIDtrans(hlID(a:group)), 'bold')
|
||||||
let opts = a:000
|
if reverse
|
||||||
if bold
|
let res = s:get_array(bg, fg, bold ? ['bold'] : a:000)
|
||||||
let opts = ['bold']
|
else
|
||||||
|
let res = s:get_array(fg, bg, bold ? ['bold'] : a:000)
|
||||||
endif
|
endif
|
||||||
let res = reverse ? s:get_array(bg, fg, opts) : s:get_array(fg, bg, opts)
|
|
||||||
endif
|
endif
|
||||||
let s:hl_groups[a:group] = res
|
let s:hl_groups[a:group] = res
|
||||||
return res
|
return res
|
||||||
|
Loading…
Reference in New Issue
Block a user