mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-25 22:32:13 +02:00
Cleanup: remove unnecessary code
The method is only called from keybinding handlers, so the view must be focused already, otherwise the binding wouldn't have been dispatched to it.
This commit is contained in:
@@ -101,10 +101,6 @@ func (self *ListController) handleLineChangeAux(f func(int), change int) error {
|
||||
rangeAfter := list.IsSelectingRange()
|
||||
after := list.GetSelectedLineIdx()
|
||||
|
||||
if err := self.pushContextIfNotFocused(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// doing this check so that if we're holding the up key at the start of the list
|
||||
// we're not constantly re-rendering the main view.
|
||||
cursorMoved := before != after
|
||||
|
||||
Reference in New Issue
Block a user