Skip to content
Myr

Fix condition for using item numlines cache (#4285)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by alex-huff · committed by GitHub · parent c1accc2 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/terminal.go+1 added-1 removed
1345 unmodified lines
1346 return numLines, numLines > atMost1347 }1348 if cached, prs := t.numLinesCache[item.Index()]; prs {1349 // Can we use this cache? Let's be conservative.1350 if cached.atMost >= atMost {1350 if cached.atMost <= atMost {1351 return cached.numLines, false1352 }1353 }1354 var overflow bool
4941 unmodified lines