1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

Disabled paste when there are no copied commits

This commit is contained in:
Stefan Haller
2023-09-15 17:46:21 +02:00
parent 8b6766de79
commit 0b13c3ca87
3 changed files with 18 additions and 3 deletions

View File

@ -85,6 +85,10 @@ func (self *CherryPickHelper) Paste() error {
})
}
func (self *CherryPickHelper) CanPaste() bool {
return self.getData().Active()
}
func (self *CherryPickHelper) Reset() error {
self.getData().ContextKey = ""
self.getData().CherryPickedCommits = nil