On 31-Jan-2024 03:56, Christian Brabandt wrote:
On Mi, 31 Jan 2024, John Marriott wrote:
The terminal is VT220 emulation. Is that what you meant?
so $TERM=vt220?
I don't know about number of colours. How do you determine that?
>From within Vim :set t_Co?
Anyway, :hi Visual for 9.1.0060 gives:
Visual xxxx term=reverse cterm=reverse guibh=LightGrey
:hi Visual for 9.1.0061+ gives:
Visual xxxx xtermfg=15 xtermbg=8 guibg=LightGrey
I added:
hi Visual term=reverse cterm=NONE ctermbg=LightGrey guibg=LightGrey to my
.vimrc and I'm back to normal. Thanks. As for my windows GUI build with this
patch, my colours have lost the plot entirely. I use a slightly modified
"evening" colour scheme which usually looks like this: After this patch, it
looks like this: Adding the removed code from highlight.c fixes it: I hope
this makes sense. Cheers John
Can you try the following patch please? (this partly restores the old
behaviour for 8 color terminals):
#v+
diff --git a/src/highlight.c b/src/highlight.c
index 85726f828..df2b97c27 100644
--- a/src/highlight.c
+++ b/src/highlight.c
@@ -440,6 +440,8 @@ init_highlight(
// Clear the attributes, needed when changing the t_Co value.
if (t_colors <= 8)
{
+ do_highlight((char_u *)"Visual cterm=reverse ctermbg=NONE",
+ FALSE, TRUE);
if (*p_bg == 'l')
do_highlight((char_u *)"Search ctermfg=black", FALSE, TRUE);
}
#v-
Thanks,
Christian
Hi Christian,
Yes $TERM=vt220
:set t_Co? from inside vim gives:
t_Co=
I tried your patch and it seems to fix it. I don't understand why
though. When I run :set t_Co inside my Windows GUI vim I get
t_Co=16777216. If the number of colours is 16M, how can t_colors be <= 8
to affect the outcome?
Cheers
John
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/0f840aca-748b-4b41-b830-2c615aca7eaf%40internode.on.net.