e8c84a5eb5c7

Move the color check to the top.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 09 Mar 2012 10:33:38 -0500
parents 1e203755774d
children 5db0de524861
branches/tags (none)
files colors/badwolf.vim

Changes

--- a/colors/badwolf.vim	Fri Mar 09 07:21:08 2012 +0100
+++ b/colors/badwolf.vim	Fri Mar 09 10:33:38 2012 -0500
@@ -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 @@
 " }}}
 " 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