mirror of
https://github.com/walles/moar.git
synced 2024-09-11 12:15:43 +03:00
Tune logging
This commit is contained in:
parent
d1fac66a23
commit
11095496b2
@ -23,7 +23,7 @@ func (p *Pager) scrollToSearchHits() {
|
||||
}
|
||||
|
||||
firstHitPosition := p.findFirstHit(*lineNumber, nil, false)
|
||||
if firstHitPosition == nil {
|
||||
if firstHitPosition == nil && (*lineNumber != linenumbers.LineNumber{}) {
|
||||
// Try again from the top
|
||||
firstHitPosition = p.findFirstHit(linenumbers.LineNumber{}, lineNumber, false)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user