When lines are folded, sign columns are highlighted with Folded group.
Steps to reproduce:
$ vim -u NONE
:call append(0, ['1', '2', '3', '4', '5', '6', '7', '8', '9'])
:2,3fold
:sign define test text=TS
:execute 'sign place 999 line=5 name=test buffer=' . bufnr('%')
:highlight Folded guibg=red ctermbg=red
Then, you can see sign columns are highlighted with red.
I think it is better to highlight it with SignColumn group.
diff -r bfdab0bcf4f5 src/screen.c
--- a/src/screen.c Fri Mar 23 18:39:18 2012 +0100
+++ b/src/screen.c Tue Mar 27 08:14:27 2012 +0900
@@ -2293,10 +2293,10 @@
if (wp->w_p_rl)
/* the line number isn't reversed */
copy_text_attr(off + W_WIDTH(wp) - len - col,
- (char_u *)" ", len, hl_attr(HLF_FL));
+ (char_u *)" ", len, hl_attr(HLF_SC));
else
# endif
- copy_text_attr(off + col, (char_u *)" ", len, hl_attr(HLF_FL));
+ copy_text_attr(off + col, (char_u *)" ", len, hl_attr(HLF_SC));
col += len;
}
}
--
Yukihiro Nakadaira - [email protected]
--
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