mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
Fix horizontal scroll bug around line cache
This commit is contained in:
parent
fa02d52f66
commit
b60d54fbc9
|
|
@ -693,9 +693,8 @@ func (l *BasicLayout) HorizontalScroll(p PagingRequest) {
|
|||
} else if l.currentCol < 0 {
|
||||
l.currentCol += width / 2
|
||||
}
|
||||
buf := l.GetCurrentLineBuffer()
|
||||
for n := 0; n < len(l.list.displayCache); n++ {
|
||||
if line, err := buf.LineAt(n); err == nil {
|
||||
for _, line := range l.list.displayCache {
|
||||
if line != nil {
|
||||
line.SetDirty(true)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue