1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-29 18:09:49 +02:00
This commit is contained in:
Ian Storm Taylor
2016-06-27 14:23:40 -07:00
parent f6c1e8de28
commit 9fd4e0af86

View File

@@ -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)