Skip to content

Commit 7aa6c30

Browse files
committed
fix(android): inline style merging
1 parent 10951a1 commit 7aa6c30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • android/src/main/java/com/swmansion/enriched/textinput/styles

android/src/main/java/com/swmansion/enriched/textinput/styles/InlineStyles.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class InlineStyles(
1818
) {
1919
val previousSpanStart = (start - 1).coerceAtLeast(0)
2020
val previousSpanEnd = previousSpanStart + 1
21-
val nextSpanStart = (end + 1).coerceAtMost(spannable.length)
21+
val nextSpanStart = end.coerceAtMost(spannable.length)
2222
val nextSpanEnd = (nextSpanStart + 1).coerceAtMost(spannable.length)
2323
val previousSpans = spannable.getSpans(previousSpanStart, previousSpanEnd, type)
2424
val nextSpans = spannable.getSpans(nextSpanStart, nextSpanEnd, type)

0 commit comments

Comments
 (0)