From 6937e33f60197e289c4ae6ed37b8830ceac5dc1e Mon Sep 17 00:00:00 2001 From: Steve Losh Date: Fri, 9 Mar 2012 10:33:38 -0500 Subject: [PATCH] Move the color check to the top. --- colors/badwolf.vim | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/colors/badwolf.vim b/colors/badwolf.vim index 2ff5f30..c862cf9 100644 --- a/colors/badwolf.vim +++ b/colors/badwolf.vim @@ -31,6 +31,10 @@ " Supporting code ------------------------------------------------------------- " Preamble {{{ +if !has("gui_running") && &t_Co != 88 && &t_Co != 256 + finish +endif + set background=dark if exists("syntax_on") @@ -42,11 +46,6 @@ let colors_name = "badwolf" " }}} " Palette {{{ -" **UPDATE** This color scheme only works on 256 colors. -if !has("gui_running") && &t_Co != 88 && &t_Co != 256 - finish -endif - let s:bwc = {} " The most basic of all our colors is a slightly tweaked version of the Molokai