Check correct window for 'diff' on BufWinLeave

Closes #493.