mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
parent
350a9d69c6
commit
cbec2ff082
|
|
@ -409,8 +409,8 @@ func (l *ListArea) Draw(parent Layout, perPage int, runningQuery bool) {
|
|||
|
||||
// This protects us from losing the selected line in case our selected
|
||||
// line is greater than the buffer
|
||||
if l.currentLine >= bufsiz {
|
||||
l.currentLine = bufsiz - 1
|
||||
if lbufsiz := linebuf.Size(); l.currentLine >= lbufsiz {
|
||||
l.currentLine = lbufsiz - 1
|
||||
}
|
||||
|
||||
// previously drawn lines are cached. first, truncate the cache
|
||||
|
|
|
|||
Loading…
Reference in a new issue