Skip to content

Commit 7a9aaec

Browse files
committed
Fixed another instance of visual jittery.
1 parent 22fa6e0 commit 7a9aaec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class BlockFormatter(editor: AztecText, listStyle: ListStyle, quoteStyle: QuoteS
138138
} else if (indexOfLineEnd == -1) {
139139
spanEnd = text.length
140140
} else {
141-
spanEnd = indexOfLineEnd
141+
spanEnd = indexOfLineEnd + if (textChangedEvent.isAfterZeroWidthJoiner()) 1 else 0
142142
}
143143

144144
if (spanEnd <= textLength) {

0 commit comments

Comments
 (0)