Skip to content

Commit 6983cea

Browse files
committed
Revert "Merge pull request #284 from wordpress-mobile/issue/237-cant-remove-styling-writing-text"
This reverts commit aac7c2a, reversing changes made to b2af281.
1 parent aac7c2a commit 6983cea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/formatting/InlineFormatter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class InlineFormatter(editor: AztecText, val codeStyle: CodeStyle, val headerSty
6868
val spanStart = editableText.getSpanStart(it)
6969
val spanEnd = editableText.getSpanEnd(it)
7070

71-
if ((spanStart == start || spanEnd == count + start) && (spanEnd - spanStart) < after) {
71+
if ((spanStart == start || spanEnd == count + start) && spanEnd < after) {
7272
editableText.removeSpan(it)
7373
carryOverSpans.add(CarryOverSpan(it, spanStart, spanEnd))
7474
}

0 commit comments

Comments
 (0)