Fix horizontal scroll bug around line cache

This commit is contained in:
Tomohiro Nishimura 2015-05-17 22:57:40 +09:00
parent fa02d52f66
commit b60d54fbc9

View file

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