File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
aztec/src/main/kotlin/org/wordpress/aztec/formatting Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ subprojects {
6565ext {
6666 minSdkVersion = 24
6767 compileSdkVersion = 34
68- targetSdkVersion = 33
68+ targetSdkVersion = 34
6969}
7070
7171ext {
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'
You can’t perform that action at this time.
0 commit comments