Revert buffer if the file was changed