diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2022-10-11 23:35:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-11 23:35:35 +0200 |
| commit | 45cc5fd7656c48606bf337a4cc01380bedc8ba36 (patch) | |
| tree | 770577cfec5995ff10a7e1275b780f578beb4ad6 /runtime/colors/pablo.vim | |
| parent | 760b399f6c0c6470daa0663752bd22886997f9e6 (diff) | |
| download | rneovim-45cc5fd7656c48606bf337a4cc01380bedc8ba36.tar.gz rneovim-45cc5fd7656c48606bf337a4cc01380bedc8ba36.tar.bz2 rneovim-45cc5fd7656c48606bf337a4cc01380bedc8ba36.zip | |
fix(runtime): properly rely on t_Co for colorschemes (#20602)
Problem: check for available colors failed
Solution: simply trust t_Co, which is always available
Diffstat (limited to 'runtime/colors/pablo.vim')
| -rw-r--r-- | runtime/colors/pablo.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/colors/pablo.vim b/runtime/colors/pablo.vim index dc3e496853..5c5f02ae6a 100644 --- a/runtime/colors/pablo.vim +++ b/runtime/colors/pablo.vim @@ -12,7 +12,7 @@ set background=dark hi clear let g:colors_name = 'pablo' -let s:t_Co = exists('&t_Co') && !has('gui_running') ? (&t_Co ? &t_Co : 0) : -1 +let s:t_Co = &t_Co if (has('termguicolors') && &termguicolors) || has('gui_running') let g:terminal_ansi_colors = ['#000000', '#cd0000', '#00cd00', '#cdcd00', '#0000ee', '#cd00cd', '#00cdcd', '#e5e5e5', '#7f7f7f', '#ff0000', '#00ff00', '#ffff00', '#5c5cff', '#ff00ff', '#00ffff', '#ffffff'] |