Move undo/redo from view to buffer.

Because individual insert/delete perform their own view notifications,
there's no need for extra cursor movement at the end of undo/redo.