m/fzf
1
0
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:
alex-huff
2025-02-25 05:25:26 -06:00
committed by GitHub
parent c1accc2e5b
commit cd1da27ff2

View File

@@ -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
}
}