Do not update the file if there is no diff. Clear the markers when the error panel is closed.