Skip to content

Commit 2a80beb

Browse files
committed
fix squash command detection
1 parent d66153f commit 2a80beb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commonMain/kotlin/main.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fun main(args: Array<String>) {
2222
throw ExitException()
2323
}
2424
}
25-
} catch (e: ExitException) {
25+
} catch (_: ExitException) {
2626
// no-op
2727
}
2828
}

src/commonMain/kotlin/viewmodel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ViewModel(
2020
val selectedLine: MutableStateFlow<IntRange> = MutableStateFlow(-1..-1)
2121

2222
private var dirUp: Boolean = true
23-
private val commitLineRegexp = """^(pick|reword|edit|sqaush|fixup|drop).*""".toRegex()
23+
private val commitLineRegexp = """^(pick|reword|edit|squash|fixup|drop).*""".toRegex()
2424
private val updateRefLineRegexp = """^(#\s+)?update-ref.*""".toRegex()
2525

2626
init {

0 commit comments

Comments
 (0)