Automatically fallback to 16 colors when t_Co < 256.

This commit is contained in:
Lifepillar
2018-06-20 09:05:06 +02:00
parent a6c31460bd
commit e96b6b6d1c
5 changed files with 9 additions and 9 deletions

View File

@@ -4,10 +4,10 @@
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
" Website: https://github.com/lifepillar/vim-solarized8
" License: OSI approved MIT license
" Last Updated: Mon 07 May 2018 12:48:34 PM CEST
" Last Updated: Wed Jun 20 09:03:17 2018
if !(has('termguicolors') && &termguicolors) && !has('gui_running')
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', 0) ? 16 : 256))
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', &t_Co < 256) ? 16 : 256))
echoerr '[Solarized 8 Low Contrast] There are not enough colors.'
finish
endif