That fixes half the problem. It no longer leaves a highlight on the wrong line, but the newly selected line does not highlight the empty space at the end of the line.
I haven't tried the patch yet, but I can tell you that (on my system) the other "half" of the problem is there before the patch.
That is, the trailing whitespace on a new line goes without highlight. I was under the (wrong?) impression that this was desired and that the whitespace highlighting was a bug. No?
(in fact, it might be useful if the trailing "screen space" is *not* highlighted. That makes it easy to X-ray trailing whitespace buried in the changeset)
--Ted -- Ted Pavlic <ted@xxxxxxxxxxxxx> Please visit my ALS association page: http://web.alsa.org/goto/tedpavlic My family appreciates your support in the fight to defeat ALS. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html