hl-DiffChange should be overwritten by matchadd() ?

112 views
Skip to first unread message

mattn

unread,
May 8, 2015, 3:06:34 AM5/8/15
to vim...@googlegroups.com
Hi list.

http://ftp.vim.org/vim/patches/7.4/7.4.682

This fixes bug of cursorline. After 7.4.682, Behavior of highlighting of line are changed.

a.txt
-----------------------
aaa xxx aaa xxx aaa
-----------------------
b.txt
-----------------------
aaa yyy aaa yyy aaa
-----------------------

$ vim b.txt
:diffsplit a.txt
:call matchadd('MatchParen', 'aaa')

You can see:
https://cloud.githubusercontent.com/assets/3096934/7513011/f94c9b02-f4eb-11e4-8820-bf020da9ed66.png

Before 7.4.682, this was:
https://cloud.githubusercontent.com/assets/3096934/7512982/c42a2c82-f4eb-11e4-91f9-577087c24397.png

After 7.4.682, middle "aaa" remains bold highlight of DiffChange.

:hi DiffChange
DiffChange xxx term=bold ctermbg=5 guibg=DarkMagenta
:hi MatchParen
MatchParen xxx term=reverse ctermbg=3 guibg=DarkCyan

Vim handle hl-DiffChange/hl-CursorLine both as highlighting par-line. So 7.4.682 is applied to hl-DiffChange. I want to ask you that this is a bug or not. If you think this is a bug, 7.4.682 should be applied only for cursorline. If not, this behavior is right.

How do you think?

- mattn

mattn

unread,
May 8, 2015, 5:25:41 AM5/8/15
to vim...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages