mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-14 06:13:47 -05:00
Fix condition for using item numlines cache (#4285)
This commit is contained in:
@@ -1347,7 +1347,7 @@ func (t *Terminal) numItemLines(item *Item, atMost int) (int, bool) {
|
||||
}
|
||||
if cached, prs := t.numLinesCache[item.Index()]; prs {
|
||||
// Can we use this cache? Let's be conservative.
|
||||
if cached.atMost >= atMost {
|
||||
if cached.atMost <= atMost {
|
||||
return cached.numLines, false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user