Skip to content

Commit 121a1b6

Browse files
committed
Prevent selection of EOB marker.
1 parent 3c5f72f commit 121a1b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,7 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
12401240
if (length() != 0) {
12411241
// do not set selection when we try to select end of buffer marker in empty editor
12421242
if (selStart == 0 && selEnd == 1 && (length() == 1 && text[0] == Constants.END_OF_BUFFER_MARKER)) {
1243+
deleteInlineStyleFromTheBeginning()
12431244
return
12441245
}
12451246

0 commit comments

Comments
 (0)