Improve updating diff information at kill-buffer command