diff options
| author | alex-huff <38389408+alex-huff@users.noreply.github.com> | 2025-02-25 05:25:26 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-25 20:25:26 +0900 |
| commit | cd1da27ff2df2ba2927db5b1ef8d8127e8e60800 (patch) | |
| tree | 8a5f00aeb63870e7286b09697e78b14a8513ac3a /src | |
| parent | c1accc2e5bd03c5c1516d99058e3e75241ae7f76 (diff) | |
| download | fzf-cd1da27ff2df2ba2927db5b1ef8d8127e8e60800.tar.gz | |
Fix condition for using item numlines cache (#4285)
Diffstat (limited to 'src')
| -rw-r--r-- | src/terminal.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal.go b/src/terminal.go index 03d90064..a762853e 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -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 } } |
