File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
main/java/org/wordpress/aztec/placeholders
test/java/org/wordpress/aztec/placeholders Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ class PlaceholderManager(
157157 selectionStartMinusOne to selectionStart
158158 } else if (editableText[selectionStartMinusOne] == ' \n ' && editableText[selectionStartMinusTwo] == Constants .IMG_CHAR ) {
159159 selectionStartMinusTwo to selectionStart
160- } else if (editableText[selectionEndPlusOne] == Constants .IMG_CHAR ){
160+ } else if (editableText[selectionEndPlusOne] == Constants .IMG_CHAR ) {
161161 selectionEndPlusOne to (selectionEndPlusOne + 1 ).coerceAtMost(aztecText.length())
162162 } else if (editableText[selectionEndPlusOne] == ' \n ' && editableText[selectionEndPlusTwo] == Constants .IMG_CHAR ) {
163163 selectionEndPlusTwo to (selectionEndPlusTwo + 1 ).coerceAtMost(aztecText.length())
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import org.junit.Test
1212import org.junit.runner.RunWith
1313import org.robolectric.Robolectric
1414import org.robolectric.RobolectricTestRunner
15- import org.wordpress.aztec.AztecAttributes
1615import org.wordpress.aztec.AztecText
1716import org.wordpress.aztec.source.SourceViewEditText
1817import org.wordpress.aztec.toolbar.AztecToolbar
You can’t perform that action at this time.
0 commit comments