diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-27 00:02:13 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-27 00:02:13 +0000 |
commit | f193fffd16563cfbe7c02a21e19c8bb11707581d (patch) | |
tree | 4bae3092421aa986103b8000b1012989a9ea49e6 /src/syntax.c | |
parent | 551dbcc9b604c2992f908fb475e797fcc116315b (diff) | |
download | vim-git-f193fffd16563cfbe7c02a21e19c8bb11707581d.tar.gz |
updated for version 7.0f02v7.0f02
Diffstat (limited to 'src/syntax.c')
-rw-r--r-- | src/syntax.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/syntax.c b/src/syntax.c index 5308f903c..e6062411c 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -6327,12 +6327,18 @@ init_highlight(both, reset) do_highlight((char_u *)pp[i], reset, TRUE); /* Reverse looks ugly, but grey may not work for 8 colors. Thus let it - * depend on the number of colors available. */ + * depend on the number of colors available. + * With 8 colors brown is equal to yellow, need to use black for Search fg + * to avoid Statement highlighted text disappears. */ if (t_colors > 8) do_highlight((char_u *)(*p_bg == 'l' ? "Visual ctermbg=LightGrey" : "Visual ctermbg=DarkGrey"), FALSE, TRUE); else + { do_highlight((char_u *)"Visual cterm=reverse", FALSE, TRUE); + if (*p_bg == 'l') + do_highlight((char_u *)"Search ctermfg=black", FALSE, TRUE); + } #ifdef FEAT_SYN_HL /* |