Merge "Catching transactions that were not being committed."

This commit is contained in:
Trevor Parscal 2012-08-27 20:09:15 +00:00 committed by Gerrit Code Review
commit 19b95af9dd

View file

@ -928,17 +928,17 @@ ve.ce.Surface.prototype.handleEnter = function ( e ) {
tx = ve.dm.Transaction.newFromInsertion(
documentModel, list.getOuterRange().to, emptyParagraph
);
this.model.change( tx );
advanceCursor = false;
} else {
// We must process the transaction first because getRelativeContentOffset can't help us
// yet
tx = ve.dm.Transaction.newFromInsertion( documentModel, selection.from, stack );
this.model.change( tx );
}
}
// Commit the transaction
this.model.change( tx );
// Now we can move the cursor forward
if ( advanceCursor ) {
this.model.change(