Allow to undo history when changing Buffers