Function UndoBuffer.undo

returns operation to be undone (put it to redo), null if no undo ops available

EditOperation undo();