Don't advance cursor when adding new line at start of node

Bug: 48735
Change-Id: I934888ce727258cf3feb3e28d822e507554da701
This commit is contained in:
Rob Moen 2013-06-27 12:03:43 -07:00
parent afe99d400a
commit 4f773438fb

View file

@ -1128,6 +1128,7 @@ ve.ce.Surface.prototype.handleEnter = function ( e ) {
tx = ve.dm.Transaction.newFromInsertion(
documentModel, contentBranchModel.getOuterRange().from, emptyParagraph
);
advanceCursor = false;
} else if ( cursor === contentBranchModelRange.to ) {
tx = ve.dm.Transaction.newFromInsertion(
documentModel, contentBranchModel.getOuterRange().to, emptyParagraph