Christian Brabandt wrote: > this oneliner fixes this issue from the todo-list > > ,---- > | When 'cursorcolumn' is set locally to a window, ":new" opens a window > | with the same highlighting but 'cursorcolumn' is empty. (Tyru, 2010 Nov > | 15) > `----
Note that it should say 'colorcolumn' instead of 'cursorcolumn'. > > diff --git a/src/screen.c b/src/screen.c > --- a/src/screen.c > +++ b/src/screen.c > @@ -2864,7 +2864,7 @@ > > /* Check for columns to display for 'colorcolumn'. */ > color_cols =3D wp->w_p_cc_cols; > - if (color_cols !=3D NULL) > + if (color_cols !=3D NULL && *wp->w_p_cc !=3D NUL) > draw_color_col =3D advance_color_col(VCOL_HLC, &color_cols); > #endif I think the proper solution is to reset wp->w_p_cc_cols. I don't quite see why that doesn't happen, win_init() calls check_colorcolumn() after the options have been set to empty. Oh wait, the option is reset to the global value somewhere later. That's where the call to check_colorcolumn() is missing. -- hundred-and-one symptoms of being an internet addict: 235. You start naming your kids Pascal, COBOL, Algol and Fortran. /// 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
