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()
|
.fillMaxWidth()
|
||||||
.weight(weight = 1f, fill = true)
|
.weight(weight = 1f, fill = true)
|
||||||
.onPreviewKeyEvent { keyEvent ->
|
.onPreviewKeyEvent { keyEvent ->
|
||||||
if (keyEvent.matchesBinding(KeybindingOption.TEXT_ACCEPT) && canCommit) {
|
if (keyEvent.matchesBinding(KeybindingOption.TEXT_ACCEPT) && (canCommit || isAmend && canAmend)) {
|
||||||
doCommit()
|
doCommit()
|
||||||
true
|
true
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user