files: fix the way we restore point when reverting a buffer