Christian Brabandt wrote:

> 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.

Thanks, I'll include it.

-- 
BROTHER MAYNARD: Armaments Chapter Two Verses Nine to Twenty One.
ANOTHER MONK:    And St.  Attila raised his hand grenade up on high saying "O
                 Lord bless this thy hand grenade that with it thou mayest
                 blow thine enemies to tiny bits, in thy mercy. "and the Lord
                 did grin and people did feast upon the lambs and sloths and
                 carp and anchovies and orang-utans and breakfast cereals and
                 fruit bats and...
BROTHER MAYNARD: Skip a bit brother ...
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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.


Raspunde prin e-mail lui