Cannot show diff of renamed file

Quick'n'dirty fix for issue #1276.

Any comments?