From cae619ec17ed62def5b38f7abb10a8ad6ff313d4 Mon Sep 17 00:00:00 2001 From: khaykov Date: Wed, 27 Nov 2024 13:04:29 -0600 Subject: [PATCH] added comment --- aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt b/aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt index 9d4d3fcb9..9bc3f4238 100644 --- a/aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt +++ b/aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt @@ -1238,6 +1238,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 ((length() == 1 && text[0] == Constants.END_OF_BUFFER_MARKER)) { return }