[vim/vim] Diff mode fails to highlight this difference (#1186)

24 views
Skip to first unread message

esiegerman

unread,
Oct 20, 2016, 1:51:02 PM10/20/16
to vim/vim

(Tested with vim 8.0.42.)

vimdiff these three files (there are no whitespace differences):

file-1:

111 aaa
111 bbb

file-2:

111 aaa
222 bbb

file-3:

222 aaa
111 bbb

The highlighting is wrong -- vim doesn't show the difference in the second line:
diffbug

If you swap the lines in file-3, again the second (screen) line doesn't have its difference highlighted:
diffbug2

Note that (after restoring the original version of file-3), if you swap the lines in either of the other two files, vimdiff shows correct results. With file-1's lines swapped:
diffbug3

With file-2's lines swapped:
diffbug4


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub

Bram Moolenaar

unread,
Oct 21, 2016, 4:08:18 PM10/21/16
to vim/vim

I can reproduce this.

Reply all
Reply to author
Forward
0 new messages