Run vim --clean -S test.vim, with
vim9script edit foobar &wrap = false &showbreak = '+++ ' setline(1, '12345678') prop_type_add('test', {highlight: 'Special'}) prop_add(1, 0, { type: 'test', text: 'the quick brown fox jumps over the lazy dog', text_align: 'below' })
Result: virtual text is not displayed.
Note: When wrap is enabled, the virtual text is displayed but then the showbreak characters are also displayed before the virtual text.
Virtual text should always be displayed.
9.0.147
Linux
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
These are two separate issues - showing 'showbreak' and using 'nowrap'.
I fixed 'showbreak' for a text property below, I'm not sure what should happen for a wrapping text property. Currently it does show the 'showbreak' text, and I would think that is OK.
When 'wrap' is off then with a "below" virtual text we break with the certainty that a buffer line always occupies one screen line, that is likely to require changes in various places.
Also, when 'wrap' is off truncating the virtual text should probably not happen.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #10851 as completed via 4d91d34.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Thank you for the quick fix.
Unfortunately, now the virtual text is displayed in the sign column when it's enabled. This only happens with set signcolumn=yes and set nowrap.
Example:
vim9script edit foobar &wrap =
false &signcolumn = 'yes'
setline(1, '12345678') prop_type_add('test', {highlight: 'Special'}) prop_add(1, 0, { type: 'test', text: 'the quick brown fox jumps over the lazy dog', text_align: 'below' })
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()