On Wed, February 6, 2013 01:07, Ben Fritz wrote: > Consider: > > :e somefile.txt > :setl colorcolumn=5 > :sp > :setl colorcolumn=10 > :sp > :setl colorcolumn=-2 > > I would expect the first window to have a constant highlight at the 5th > column, the second to have a constant highlight at the 10th column, and > the third to have a highlight two columns left of whatever the current > value of 'textwidth' is. If I change textwidth, I would expect the > highlight on the first two windows to remain unchanged but the third > window should have the highlight adjusted accordingly. > > Currently this is exactly what I see. If 'colorcolumn' is made > buffer-local instead of window-local, all three windows would now depend > on textwidth. > I think, the attached patch checks for changing of local tw and adjusts the colorcolumn setting. There might still be some more places where tw is changed that would need to check the colorcolumn setting adjusted.
regards, Christian -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
check_tw_cc.diff
Description: Binary data
