Cleanup: use the right context for CommitDescriptionController.Context()

It doesn't seem to be used by anything, it looks like we only need to implement
the method so that the IController interface is satisfied. But still, it doesn't
hurt to be correct here, and might avoid confusion in the future when somebody
does try to use the method.
This commit is contained in:
Stefan Haller 2024-08-15 14:40:29 +02:00
parent 59450c7d12
commit c2e953a09f

View file

@ -1,7 +1,6 @@
package controllers
import (
"github.com/jesseduffield/lazygit/pkg/gui/context"
"github.com/jesseduffield/lazygit/pkg/gui/types"
)
@ -45,11 +44,7 @@ func (self *CommitDescriptionController) GetKeybindings(opts types.KeybindingsOp
}
func (self *CommitDescriptionController) Context() types.Context {
return self.context()
}
func (self *CommitDescriptionController) context() *context.CommitMessageContext {
return self.c.Contexts().CommitMessage
return self.c.Contexts().CommitDescription
}
func (self *CommitDescriptionController) switchToCommitMessage() error {