Hi Bram,
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)
`----


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 = wp->w_p_cc_cols;
-    if (color_cols != NULL)
+    if (color_cols != NULL && *wp->w_p_cc != NUL)
        draw_color_col = advance_color_col(VCOL_HLC, &color_cols);
 #endif


regards,
Christian
-- 
Melkt die Bäuerin die Kühe, hat der Bauer keine Mühe.

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

Raspunde prin e-mail lui