Skip to content

Commit 299b8ea

Browse files
author
Gerardo
committed
Merge branch 'trunk' into fix/mark-style-issues
2 parents 99b5c9f + e204002 commit 299b8ea

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ class IndentFormatter(editor: AztecText) : AztecFormatter(editor) {
167167
* Checks whether any line of the selection can be outdented
168168
*/
169169
fun isOutdentAvailable(): Boolean {
170+
if (selectionStart == -1) {
171+
return false
172+
}
170173
val previousLineBreak = editableText.substring(0, selectionStart).lastIndexOf("\n")
171174
if (previousLineBreak > 0 && selectionCanBeOutdented(previousLineBreak + 1, selectionStart)) {
172175
return true

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ subprojects {
6565
ext {
6666
minSdkVersion = 24
6767
compileSdkVersion = 34
68-
targetSdkVersion = 33
68+
targetSdkVersion = 34
6969
}
7070

7171
ext {
@@ -75,7 +75,7 @@ ext {
7575
tagSoupVersion = '1.2.1'
7676
glideVersion = '4.10.0'
7777
picassoVersion = '2.5.2'
78-
robolectricVersion = '4.9'
78+
robolectricVersion = '4.11'
7979
jUnitVersion = '4.12'
8080
jSoupVersion = '1.11.3'
8181
wordpressUtilsVersion = '3.5.0'

0 commit comments

Comments
 (0)