diff --git a/plugin/CSApprox.vim b/plugin/CSApprox.vim index 175be8b..88c8ad1 100644 --- a/plugin/CSApprox.vim +++ b/plugin/CSApprox.vim @@ -628,9 +628,6 @@ function! s:CSApproxImpl() " Get the current highlight colors let highlights = s:Highlights() - call s:FixupGuiInfo(highlights) - call s:FixupCtermInfo(highlights) - let hinums = keys(highlights) " Make sure that the script is not already 256 color by checking to make @@ -651,6 +648,9 @@ function! s:CSApproxImpl() endif endfor + call s:FixupGuiInfo(highlights) + call s:FixupCtermInfo(highlights) + " We need to set the Normal group first so 'bg' and 'fg' work as colors call sort(hinums, "s:SortNormalFirst")