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)