diff options
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/github.com/jesseduffield/gocui/view.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/jesseduffield/gocui/view.go b/vendor/github.com/jesseduffield/gocui/view.go index 4e4de080d..b13074242 100644 --- a/vendor/github.com/jesseduffield/gocui/view.go +++ b/vendor/github.com/jesseduffield/gocui/view.go @@ -170,7 +170,7 @@ func (v *View) gotoNextMatch() error { if len(v.searcher.searchPositions) == 0 { return nil } - if v.searcher.currentSearchIndex == len(v.searcher.searchPositions)-1 { + if v.searcher.currentSearchIndex >= len(v.searcher.searchPositions)-1 { v.searcher.currentSearchIndex = 0 } else { v.searcher.currentSearchIndex++ |