Skip to content

Commit 3c5f72f

Browse files
committed
Refined fix to only apply to exact 0 to 1 selection.
1 parent cae619e commit 3c5f72f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
12391239

12401240
if (length() != 0) {
12411241
// do not set selection when we try to select end of buffer marker in empty editor
1242-
if ((length() == 1 && text[0] == Constants.END_OF_BUFFER_MARKER)) {
1242+
if (selStart == 0 && selEnd == 1 && (length() == 1 && text[0] == Constants.END_OF_BUFFER_MARKER)) {
12431243
return
12441244
}
12451245

0 commit comments

Comments
 (0)