Skip to content

Commit e831237

Browse files
committed
Formatting.
1 parent 5adaaae commit e831237

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/EnhancedMovementMethod.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ object EnhancedMovementMethod : ArrowKeyMovementMethod() {
4545
val clickedOnSpanToTheLeftOfCursor = x in charPrevX..charX
4646
val clickedOnSpanToTheRightOfCursor = x in charX..charNextX
4747

48-
val clickedOnSpan = clickedWithinLineHeight && (clickedOnSpanToTheLeftOfCursor || clickedOnSpanToTheRightOfCursor)
48+
val clickedOnSpan = clickedWithinLineHeight &&
49+
(clickedOnSpanToTheLeftOfCursor || clickedOnSpanToTheRightOfCursor)
4950

5051
val clickedSpanBordersAnotherOne = (text.getSpans(off, off, ClickableSpan::class.java).size == 1 &&
5152
text.getSpans(off + 1, off + 1, ClickableSpan::class.java).isNotEmpty())
@@ -55,7 +56,6 @@ object EnhancedMovementMethod : ArrowKeyMovementMethod() {
5556
val failedToPinpointClickedSpan = (isClickedSpanAmbiguous || clickedSpanBordersAnotherOne)
5657
&& !clickedOnSpanToTheLeftOfCursor && !clickedOnSpanToTheRightOfCursor
5758

58-
5959
var link: ClickableSpan? = null
6060

6161
if (clickedOnSpan) {

0 commit comments

Comments
 (0)