[vim/vim] Have colorcolumn at the true position when linebreak is active (Issue #18726)

5 views
Skip to first unread message

Šimon Mandlík

unread,
2:37 PM (7 hours ago) 2:37 PM
to vim/vim, Subscribed
simonmandlik created an issue (vim/vim#18726)

Steps to reproduce

Steps to reproduce

When I start plain vim and run :set ruler linebreak cc=50, I get

image.png (view on web)

This is as expected, colorcolumn is occupying the col number 50.

When I resize the terminal so that the linebreak option because active and cc overflows to the next line, I get

image.png (view on web)

The colorcolumn is now two characters earlier, and the "s" where it was originally has coordinate 1,50-52. "r" has coordinate 1,48-50 and that's I guess why it was selected as colorcolumn.

I didn't find anything in the docs about this behavior. Would it be possible to instead use the smallest number of the column coordinate interval such that colorcolumn is consistent w.r.t resizing? Is this a bug or a feature?

Similar problem arrises with e.g. :set breakindent cc=50 as well as :set showbreak=> cc=50

Expected behaviour

I would expect the colorcolumn to be at the original location

Version of Vim

9.1, Included patches: 1-754

Environment

MacOS 15.7
wezterm
wezterm
fish

Logs and stack traces


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/18726@github.com>

Maxim Kim

unread,
6:30 PM (3 hours ago) 6:30 PM
to vim/vim, Subscribed
habamax left a comment (vim/vim#18726)

Could you check the latest version?

image.png (view on web)


Reply to this email directly, view it on GitHub.

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

Reply all
Reply to author
Forward
0 new messages