diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-18 01:06:02 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-18 01:06:02 +1200 |
commit | bf9e93bb8c1686b1fd8c09a334389a427f6a0678 (patch) | |
tree | e117354b4c9e65cd7487db2dd6dc56269d05b417 | |
parent | Merge branch 'release/v1.1.0' into develop (diff) | |
download | vim-sahara-bf9e93bb8c1686b1fd8c09a334389a427f6a0678.tar.gz vim-sahara-bf9e93bb8c1686b1fd8c09a334389a427f6a0678.zip |
Move load guard to top of file
-rw-r--r-- | colors/sahara.vim | 12 |
1 files changed, 6 insertions, 6 deletions
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 @@ " <https://sanctum.geek.nz/> " +" 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' |