From ff7ec263d934320deb9c49b2ca8af61caf072f01 Mon Sep 17 00:00:00 2001 From: Lifepillar Date: Thu, 21 Jun 2018 12:39:13 +0200 Subject: [PATCH] *Really* fallback to 16 colors when t_Co < 256. --- colors/solarized8.vim | 4 ++-- colors/solarized8_flat.vim | 4 ++-- colors/solarized8_high.vim | 4 ++-- colors/solarized8_low.vim | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/colors/solarized8.vim b/colors/solarized8.vim index de25b1a..09cf4d8 100644 --- a/colors/solarized8.vim +++ b/colors/solarized8.vim @@ -4,7 +4,7 @@ " Maintainer: Lifepillar " Website: https://github.com/lifepillar/vim-solarized8 " License: OSI approved MIT license -" Last Updated: Wed Jun 20 09:03:07 2018 +" Last Updated: Thu Jun 21 12:32:13 2018 if !(has('termguicolors') && &termguicolors) && !has('gui_running') \ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', &t_Co < 256) ? 16 : 256)) @@ -20,7 +20,7 @@ endif let g:colors_name = 'solarized8' " 256-color variant -if !get(g:, 'solarized_use16', 0) +if !get(g:, 'solarized_use16', &t_Co < 256) if &background ==# 'dark' " Color similarity table (dark background) " yellow: GUI=#b58900/rgb(181,137, 0) Term=136 #af8700/rgb(175,135, 0) [delta=1.465279] diff --git a/colors/solarized8_flat.vim b/colors/solarized8_flat.vim index 50983e3..8efa993 100644 --- a/colors/solarized8_flat.vim +++ b/colors/solarized8_flat.vim @@ -4,7 +4,7 @@ " Maintainer: Lifepillar " Website: https://github.com/lifepillar/vim-solarized8 " License: OSI approved MIT license -" Last Updated: Wed Jun 20 09:03:11 2018 +" Last Updated: Thu Jun 21 12:32:17 2018 if !(has('termguicolors') && &termguicolors) && !has('gui_running') \ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', &t_Co < 256) ? 16 : 256)) @@ -20,7 +20,7 @@ endif let g:colors_name = 'solarized8_flat' " 256-color variant -if !get(g:, 'solarized_use16', 0) +if !get(g:, 'solarized_use16', &t_Co < 256) if &background ==# 'dark' " Color similarity table (dark background) " yellow: GUI=#b58900/rgb(181,137, 0) Term=136 #af8700/rgb(175,135, 0) [delta=1.465279] diff --git a/colors/solarized8_high.vim b/colors/solarized8_high.vim index 335b072..5e148fd 100644 --- a/colors/solarized8_high.vim +++ b/colors/solarized8_high.vim @@ -4,7 +4,7 @@ " Maintainer: Lifepillar " Website: https://github.com/lifepillar/vim-solarized8 " License: OSI approved MIT license -" Last Updated: Wed Jun 20 09:03:14 2018 +" Last Updated: Thu Jun 21 12:32:20 2018 if !(has('termguicolors') && &termguicolors) && !has('gui_running') \ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', &t_Co < 256) ? 16 : 256)) @@ -20,7 +20,7 @@ endif let g:colors_name = 'solarized8_high' " 256-color variant -if !get(g:, 'solarized_use16', 0) +if !get(g:, 'solarized_use16', &t_Co < 256) if &background ==# 'dark' " Color similarity table (dark background) " yellow: GUI=#b58900/rgb(181,137, 0) Term=136 #af8700/rgb(175,135, 0) [delta=1.465279] diff --git a/colors/solarized8_low.vim b/colors/solarized8_low.vim index 3ed2273..8b1f8d8 100644 --- a/colors/solarized8_low.vim +++ b/colors/solarized8_low.vim @@ -4,7 +4,7 @@ " Maintainer: Lifepillar " Website: https://github.com/lifepillar/vim-solarized8 " License: OSI approved MIT license -" Last Updated: Wed Jun 20 09:03:17 2018 +" Last Updated: Thu Jun 21 12:32:24 2018 if !(has('termguicolors') && &termguicolors) && !has('gui_running') \ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', &t_Co < 256) ? 16 : 256)) @@ -20,7 +20,7 @@ endif let g:colors_name = 'solarized8_low' " 256-color variant -if !get(g:, 'solarized_use16', 0) +if !get(g:, 'solarized_use16', &t_Co < 256) if &background ==# 'dark' " Color similarity table (dark background) " yellow: GUI=#b58900/rgb(181,137, 0) Term=136 #af8700/rgb(175,135, 0) [delta=1.465279]