Skip to content

Commit

Permalink
Merge branch 'trunk' into fix/mark-style-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo committed Mar 18, 2024
2 parents 99b5c9f + e204002 commit 299b8ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ class IndentFormatter(editor: AztecText) : AztecFormatter(editor) {
* Checks whether any line of the selection can be outdented
*/
fun isOutdentAvailable(): Boolean {
if (selectionStart == -1) {
return false
}
val previousLineBreak = editableText.substring(0, selectionStart).lastIndexOf("\n")
if (previousLineBreak > 0 && selectionCanBeOutdented(previousLineBreak + 1, selectionStart)) {
return true
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ subprojects {
ext {
minSdkVersion = 24
compileSdkVersion = 34
targetSdkVersion = 33
targetSdkVersion = 34
}

ext {
Expand All @@ -75,7 +75,7 @@ ext {
tagSoupVersion = '1.2.1'
glideVersion = '4.10.0'
picassoVersion = '2.5.2'
robolectricVersion = '4.9'
robolectricVersion = '4.11'
jUnitVersion = '4.12'
jSoupVersion = '1.11.3'
wordpressUtilsVersion = '3.5.0'
Expand Down

0 comments on commit 299b8ea

Please sign in to comment.