From 5418f85ed04f41807bf85f2a03877e742c848a3b Mon Sep 17 00:00:00 2001 From: Matt Wozniski Date: Sun, 14 Dec 2008 06:23:07 -0500 Subject: [PATCH] Fix a bug handling high-color themes Thank goodness I caught this before releasing CSApprox 2.0! Two misplaced lines meant that it would crap all over already 256 color themes, like inkpot.vim and vividchalk.vim, because they cleared the old cterm colors before the test that made sure that none of the old cterm colors were over 15. --- plugin/CSApprox.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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")