mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-16 02:26:24 -04: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:
parent
9c0cbd83c7
commit
2576258ba3
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue