Fixed ctrl+enter not amending if there are no staged changes
This commit is contained in:
parent
29c04dbad3
commit
4d32df5717
@ -201,7 +201,7 @@ fun UncommitedChanges(
|
||||
.fillMaxWidth()
|
||||
.weight(weight = 1f, fill = true)
|
||||
.onPreviewKeyEvent { keyEvent ->
|
||||
if (keyEvent.matchesBinding(KeybindingOption.TEXT_ACCEPT) && canCommit) {
|
||||
if (keyEvent.matchesBinding(KeybindingOption.TEXT_ACCEPT) && (canCommit || isAmend && canAmend)) {
|
||||
doCommit()
|
||||
true
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user