1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-09-16 09:16:26 +02:00

Remove return value of RenderToMainViews and some related functions

This commit is contained in:
Stefan Haller
2024-09-04 13:42:03 +02:00
parent b91beb68e1
commit 5446683881
29 changed files with 109 additions and 113 deletions

View File

@@ -45,7 +45,7 @@ type IGuiCommon interface {
// allows rendering to main views (i.e. the ones to the right of the side panel)
// in such a way that avoids concurrency issues when there are slow commands
// to display the output of
RenderToMainViews(opts RefreshMainOpts) error
RenderToMainViews(opts RefreshMainOpts)
// used purely for the sake of RenderToMainViews to provide the pair of main views we want to render to
MainViewPairs() MainViewPairs

View File

@@ -95,7 +95,7 @@ type IBaseContext interface {
// We'll need to think of a better way to do this.
AddOnClickFn(func() error)
AddOnRenderToMainFn(func() error)
AddOnRenderToMainFn(func())
AddOnFocusFn(func(OnFocusOpts) error)
AddOnFocusLostFn(func(OnFocusLostOpts) error)
}
@@ -106,7 +106,7 @@ type Context interface {
HandleFocus(opts OnFocusOpts) error
HandleFocusLost(opts OnFocusLostOpts) error
HandleRender()
HandleRenderToMain() error
HandleRenderToMain()
}
type ISearchHistoryContext interface {
@@ -232,7 +232,7 @@ type HasKeybindings interface {
GetKeybindings(opts KeybindingsOpts) []*Binding
GetMouseKeybindings(opts KeybindingsOpts) []*gocui.ViewMouseBinding
GetOnClick() func() error
GetOnRenderToMain() func() error
GetOnRenderToMain() func()
GetOnFocus() func(OnFocusOpts) error
GetOnFocusLost() func(OnFocusLostOpts) error
}