Skip to content

Commit

Permalink
don't bother resetting origin of main view
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield committed Apr 14, 2020
1 parent e094b57 commit 73a0b21
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/gui/list_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,6 @@ func (lv *listView) handleClick(g *gocui.Gui, v *gocui.View) error {

*selectedLineIdxPtr = newSelectedLineIdx

if lv.rendersToMainView {
if err := lv.gui.resetOrigin(lv.gui.getMainView()); err != nil {
return err
}
if err := lv.gui.resetOrigin(lv.gui.getSecondaryView()); err != nil {
return err
}
}

prevViewName := lv.gui.currentViewName()
if prevSelectedLineIdx == newSelectedLineIdx && prevViewName == lv.viewName && lv.handleClickSelectedItem != nil {
return lv.handleClickSelectedItem(lv.gui.g, v)
Expand Down

0 comments on commit 73a0b21

Please sign in to comment.