mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Remove return value of Focus-related functions
This commit is contained in:
parent
8edcd71234
commit
8302575078
24 changed files with 73 additions and 96 deletions
|
@ -73,7 +73,8 @@ func (self *ListController) HandleScrollDown() error {
|
|||
func (self *ListController) scrollHorizontal(scrollFunc func()) error {
|
||||
scrollFunc()
|
||||
|
||||
return self.context.HandleFocus(types.OnFocusOpts{})
|
||||
self.context.HandleFocus(types.OnFocusOpts{})
|
||||
return nil
|
||||
}
|
||||
|
||||
func (self *ListController) handleLineChange(change int) error {
|
||||
|
@ -115,7 +116,7 @@ func (self *ListController) handleLineChangeAux(f func(int), change int) error {
|
|||
}
|
||||
|
||||
if cursorMoved || rangeBefore != rangeAfter {
|
||||
return self.context.HandleFocus(types.OnFocusOpts{})
|
||||
self.context.HandleFocus(types.OnFocusOpts{})
|
||||
}
|
||||
|
||||
return nil
|
||||
|
@ -142,7 +143,8 @@ func (self *ListController) HandleToggleRangeSelect() error {
|
|||
|
||||
list.ToggleStickyRange()
|
||||
|
||||
return self.context.HandleFocus(types.OnFocusOpts{})
|
||||
self.context.HandleFocus(types.OnFocusOpts{})
|
||||
return nil
|
||||
}
|
||||
|
||||
func (self *ListController) HandleRangeSelectDown() error {
|
||||
|
@ -171,7 +173,8 @@ func (self *ListController) HandleClick(opts gocui.ViewMouseBindingOpts) error {
|
|||
if prevSelectedLineIdx == newSelectedLineIdx && alreadyFocused && self.context.GetOnClick() != nil {
|
||||
return self.context.GetOnClick()()
|
||||
}
|
||||
return self.context.HandleFocus(types.OnFocusOpts{})
|
||||
self.context.HandleFocus(types.OnFocusOpts{})
|
||||
return nil
|
||||
}
|
||||
|
||||
func (self *ListController) pushContextIfNotFocused() error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue