Skip to content

Commit cae619e

Browse files
committed
added comment
1 parent 1e415bd commit cae619e

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
@@ -1238,6 +1238,7 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
12381238
}
12391239

12401240
if (length() != 0) {
1241+
// do not set selection when we try to select end of buffer marker in empty editor
12411242
if ((length() == 1 && text[0] == Constants.END_OF_BUFFER_MARKER)) {
12421243
return
12431244
}

0 commit comments

Comments
 (0)