[vim/vim] Terminal-normal mode does not color empty lines with background color correctly (Issue #20520)

2 views
Skip to first unread message

user202729

unread,
2:46 AM (10 hours ago) 2:46 AM
to vim/vim, Subscribed
user202729 created an issue (vim/vim#20520)

Steps to reproduce

  1. vim --clean
  2. :term
  3. in the terminal, type printf '\e[100m\e[K\nold\e[K\n\e[K\e[0m\n'
  4. observe that the empty line above and below old is gray
  5. ctrl-w N
  6. observe that the empty line above and below old is not gray

Expected behaviour

the displays in terminal mode and terminal-normal mode coincide

Version of Vim

9.2.612

Environment

Ubuntu, gnome-terminal

Logs and stack traces


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20520@github.com>

user202729

unread,
2:46 AM (10 hours ago) 2:46 AM
to vim/vim, Subscribed
user202729 left a comment (vim/vim#20520)

Seems to be related to #17559. If I comment out the block

		if (term_show_buffer(wp->w_buffer)
		    && wlv.vcol == 0
		    && wlv.win_attr == term_get_attr(wp, lnum, -1))
		    // reset highlighting attribute
		    wlv.win_attr = 0;

then this issue disappear, but of course the other issue come back.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

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

Reply all
Reply to author
Forward
0 new messages