[vim/vim] Normal guifg color turns to white on CursorLine when termguicolors is set (Issue #19485)

4 views
Skip to first unread message

依云

unread,
10:42 AM (12 hours ago) 10:42 AM
to vim/vim, Subscribed
lilydjwg created an issue (vim/vim#19485)

Steps to reproduce

  1. vim --clean
  2. Input some text
  3. :colo blue. The Normal text color changes to an orange one.
  4. :set cursorline termguicolors
  5. Move cursor and you can see the text becomes white on cursor line

95e8faa is the first bad commit.

Expected behaviour

The cursor line foreground color doesn't change if not explicitly set, like in GUI or with 'notermguicolors'.

Version of Vim

9.2.43

Environment

Arch Linux, GNOME Termal 3.58.1-1 with or without tmux, $TERM = xterm-256color or tmux-256color.

Logs and stack traces


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19485@github.com>

mattn

unread,
11:07 AM (11 hours ago) 11:07 AM
to vim/vim, Subscribed
mattn left a comment (vim/vim#19485)

Probably, this line is wrong.

	    if (aep->ae_u.cterm.fg_rgb != INVALCOLOR)
		term_fg_rgb_color(aep->ae_u.cterm.fg_rgb);
	    else
		// Reset to default foreground color (SGR 39)
		out_str((char_u *)"\033[39m");


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19485/3941278422@github.com>

依云

unread,
11:14 AM (11 hours ago) 11:14 AM
to vim/vim, Subscribed
lilydjwg left a comment (vim/vim#19485)

Yes, I removed the else branch and it worked.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19485/3941296116@github.com>

Christian Brabandt

unread,
3:05 PM (7 hours ago) 3:05 PM
to vim/vim, Subscribed

Closed #19485 as completed via 2015624.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/19485/issue_event/22985059346@github.com>

Reply all
Reply to author
Forward
0 new messages