From ac7376c8d6b1adafbfd9d47aacdb85465ad32ed3 Mon Sep 17 00:00:00 2001 From: Christian Williams Date: Fri, 24 Aug 2012 15:10:29 -0700 Subject: [PATCH] Catching transactions that were not being committed. Change-Id: Ic75b07f279e4db30f6730f10b31c66d506cb94e8 --- modules/ve/ce/ve.ce.Surface.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ve/ce/ve.ce.Surface.js b/modules/ve/ce/ve.ce.Surface.js index 534d10b5e7..7f696a2fa7 100644 --- a/modules/ve/ce/ve.ce.Surface.js +++ b/modules/ve/ce/ve.ce.Surface.js @@ -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(