Skip to content

Commit

Permalink
Prevent selection of EOB marker.
Browse files Browse the repository at this point in the history
  • Loading branch information
khaykov committed Nov 27, 2024
1 parent 3c5f72f commit 121a1b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,7 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
if (length() != 0) {
// do not set selection when we try to select end of buffer marker in empty editor
if (selStart == 0 && selEnd == 1 && (length() == 1 && text[0] == Constants.END_OF_BUFFER_MARKER)) {
deleteInlineStyleFromTheBeginning()
return
}

Expand Down

0 comments on commit 121a1b6

Please sign in to comment.