We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bff5dd8 commit 93fd429Copy full SHA for 93fd429
pkg/gui/controllers/local_commits_controller.go
@@ -190,9 +190,10 @@ func (self *LocalCommitsController) GetKeybindings(opts types.KeybindingsOpts) [
190
},
191
{
192
Key: opts.GetKey(opts.Config.Commits.AmendAttributeMenu),
193
- Handler: self.checkSelected(self.amendAttribute),
194
- GetDisabledReason: self.callGetDisabledReasonFuncWithSelectedCommit(self.getDisabledReasonForAmendTo),
195
- Description: self.c.Tr.AmendAttributeMenu, OpensMenu: true,
+ Handler: self.withItem(self.amendAttribute),
+ GetDisabledReason: self.require(self.singleItemSelected((self.canAmend))),
+ Description: self.c.Tr.AmendAttributeMenu,
196
+ OpensMenu: true,
197
198
199
Key: opts.GetKey(opts.Config.Commits.RevertCommit),
0 commit comments