File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
aztec/src/main/kotlin/org/wordpress/aztec Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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) {
You can’t perform that action at this time.
0 commit comments