[#8341] fix for when diffing on a file's first appearance
3 files changed