From 9fd4e0af860e80aafb5f58e0ad9b5a9cd786d7db Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Mon, 27 Jun 2016 14:23:40 -0700 Subject: [PATCH] cleanup --- lib/models/state.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/models/state.js b/lib/models/state.js index ef0445173..969cc854e 100644 --- a/lib/models/state.js +++ b/lib/models/state.js @@ -445,12 +445,7 @@ class State extends Record(DEFAULTS) { .moveForward(lastText.length) } - else if (lastInline || startInline) { - const text = document.getPreviousText(nextText) - after = selection.moveToEndOf(text) - } - - else if (nextBlock != startBlock) { + else if (nextBlock != startBlock || lastInline || startInline) { const text = document.getPreviousText(nextText) after = selection .moveToStartOf(text)