As reported in #16837 the 'colorcolumn' option does not behave as
expected, when the 'linebreak' option is set. Instead of always
highlighting the same character independent of the window's width, the
highlighted character changes with changing window sizes.
Furthermore, the color column ignored the inserted "virtual text" that
comes with the 'showbreak' option. This resulted in the color column
possibly highlighting the text inserted by the 'showbreak' option
instead of actual, user inserted text. Now, this "virtual text" is
ignored when determining the color column's position.
https://github.com/vim/vim/pull/17477
(1 file)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I still need to add at least one new test, fix the old tests and touch up the code a bit. So, please do not merge yet.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@matrdr pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Could you show a screenshot with several long lines (~200 chars) and set colorcolumn=20,40,60,80,100,120?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
oh, nevermind I see what you try to fix now!
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
converting to draft for now. Thanks
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@matrdr pushed 6 commits.
You are receiving this because you are subscribed to this thread.![]()
@matrdr pushed 6 commits.
You are receiving this because you are subscribed to this thread.
@matrdr pushed 6 commits.
You are receiving this because you are subscribed to this thread.![]()
Getting back to this PR again. It seems like I need to change a few existing test cases, as their behaviour does not match the one I would expect. For example, the test case Test_colorcolumn_sbr expects the color columns to be on the showbreak characters, as seen in the upper output. With this fix, the behaviour is the one seen in the lower output, which I think is more in line with how a color column shall work, when the line is wrapped.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@matrdr pushed 9 commits.
You are receiving this because you are subscribed to this thread.![]()
this has stalled, so closing
—
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.![]()