Bram, On Fr, 06 Mär 2015, Christian Brabandt wrote: > On Do, 05 Mär 2015, Carlos Pita wrote: > > > Hi all, > > > > is there any way to force the color column to show above a fold header? > > > > I tried: > > > > highlight Folded cterm=none ctermbg=none > > > > and > > > > highlight clear Folded > > > > to no avail. > > > > See the attached screenshot in case I'm not being clear. > > I don't think there is a possibility. Vims highlighting priorities are > mostly hard coded in the source. So there is nothing you can do about.
Here is a patch, that makes the colorcolumn drawn on top of folded regions. Best, Christian -- Letzte Worte eines Fahrradfahrers: "Guck' mal, ich kann freihändig fahren." -- -- 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 vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
diff --git a/src/screen.c b/src/screen.c --- a/src/screen.c +++ b/src/screen.c @@ -2740,6 +2740,29 @@ fold_line(wp, fold_count, foldinfo, lnum } #ifdef FEAT_SYN_HL + /* Show colorcolumn in the folded text, + * but let cursorcolumn override it */ + if (wp->w_p_cc_cols) + { + int i = 0; + int j = wp->w_p_cc_cols[i]; + int old_txtcol = txtcol; + + while (j > -1) + { + txtcol += j; + if (wp->w_p_wrap) + txtcol -= wp->w_skipcol; + else + txtcol -= wp->w_leftcol; + if (txtcol >= 0 && txtcol < W_WIDTH(wp)) + ScreenAttrs[off + txtcol] = hl_combine_attr( + ScreenAttrs[off + txtcol], hl_attr(HLF_MC)); + txtcol = old_txtcol; + j = wp->w_p_cc_cols[++i]; + } + } + /* Show 'cursorcolumn' in the fold line. */ if (wp->w_p_cuc) {