Run vim --clean test.vim -S test.vim, with
vim9script colorscheme habamax set list set listchars+=extends:» set nowrap prop_type_add('Prop1', {highlight: 'Error'}) prop_add(3, 0, { type: 'Prop1', text: 'The quick brown fox jumps over the lazy dog', text_align: 'right' })
Result: The extends:c character is drawn instead of the last character of the virtual text. In the above example it's drawn on the 'g' of 'dog'.
In the above example, the extends:c character shouldn't been drawn at all. If the buffer line is too long and wrap is disabled, it should be drawn on the last visible buffer text and not virtual text.
I don't know what to expect when a line is too long to fit on the screen and wrap is disabled. Currently, the extends:c character is displayed, and the virtual text is not visible at all. I think this is as expected.
However, when the virtual text is not fully visible, the extends:c character is drawn on the virtual text. See the screenshot below. In my opinion, Vim should use the … character for the virtual text when it doesn't fit on the screen. This is already done in other cases. The extends:c character should be reserved only when the actual buffer text doesn't fit on the screen.
9.0.199
Linux
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
In my opinion, Vim should use the
…character for the virtual text when it doesn't fit on the screen. This is already done in other cases.
Well, the … character is shown only when wrap is enabled. It disappears with nowrap. Is this intentional?
Example code in the screenshot:
vim9script # This is a very long text line. This is a very long text line. This is a very long text line. colorscheme habamax set nolist set listchars+=extends:» set wrap
prop_type_add('Prop1', {highlight: 'Error'}) prop_add(3, 0, { type: 'Prop1', text: 'The quick brown fox jumps over the lazy dog', text_align: 'right' })
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Closed #10913 as completed via c3a483f.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()