vim9script :80vsplit # A # B 40 * aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa # C # D set list prop_type_add('test', {highlight: 'Error'}) prop_add(4, 0, { 'text': ' > 40 * bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb', 'type': 'test', 'text_wrap': 'wrap', })
vim --clean test.vim -S test.vim4Gj)The text+virtual text in line 4 is longer than 80 characters and should wrap to the next (visual) line. The cursor should be on line 5 (C).
I.e. it shoud look something like this (I've taken this screenshot with nolist:

The actual behavior looks like this:

9.0.1677
OS: Linux Mint 21.2
Terminal: gnome-terminal 3.44
Value of $TERM: xterm-256color
Shell: bash 5.1.16
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Might be related to #11959
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I found the relevant condition in the code:
https://github.com/vim/vim/blob/ffc712780fb3ba3f028a1bd4241bf1692d5172fd/src/drawline.c#L4136-L4150
where lcs_eol_one == -1 will be true after the end of line character has been added to the screen line. So it seems like that is where the bug is and it is just a matter of figuring out what the code should be.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #12725 as completed via f548ae7.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()