mirror of
https://github.com/altercation/solarized
synced 2024-11-21 19:23:02 +00:00
[vim] solarized.vim fix for bold colorshift in low color terminals
Turn off bold, regardless of user setting in g:solarized_bold, if the terminal emulator reports t_Co < 16, otherwise color is distorted.
This commit is contained in:
parent
2b30f611f1
commit
15059af521
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
" (see this url for latest release & screenshots)
|
||||
" License: OSI approved MIT license (see end of this file)
|
||||
" Created: In the middle of the night
|
||||
" Modified: 2011 May 02
|
||||
" Modified: 2011 May 03
|
||||
"
|
||||
" Usage "{{{
|
||||
"
|
||||
|
@ -409,7 +409,7 @@ endif
|
|||
"}}}
|
||||
" Overrides dependent on user specified values and environment "{{{
|
||||
" ---------------------------------------------------------------------
|
||||
if g:solarized_bold == 0
|
||||
if (g:solarized_bold == 0 || &t_Co < 16)
|
||||
let s:b = ""
|
||||
else
|
||||
let s:b = ",bold"
|
||||
|
|
Loading…
Reference in a new issue