From bf9e93bb8c1686b1fd8c09a334389a427f6a0678 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 18 May 2019 01:06:02 +1200 Subject: Move load guard to top of file --- colors/sahara.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'colors/sahara.vim') diff --git a/colors/sahara.vim b/colors/sahara.vim index 7c12739..5b12b57 100644 --- a/colors/sahara.vim +++ b/colors/sahara.vim @@ -7,6 +7,12 @@ " " +" Do nothing if we can't get our colors +if !has('gui_running') && &t_Co < 256 + echoerr 'Colorscheme requires GUI or 256 color term' + finish +endif + " Terminal setup set background=dark if v:version > 580 @@ -16,12 +22,6 @@ if v:version > 580 endif endif -" Do nothing if we can't get our colors -if !has('gui_running') && &t_Co < 256 - echoerr 'Colorscheme requires GUI or 256 color term' - finish -endif - " Set colorscheme name let colors_name = 'sahara' -- cgit v1.2.3