Fix small horizontal scrolling glitch

This commit is contained in:
Zachary Yedidia 2016-07-23 11:58:28 -04:00
parent c7b84a7eaa
commit cfd97b21ad

View file

@ -794,7 +794,7 @@ func (v *View) DisplayView() {
lineStyle = lineStyle.Background(fg)
}
}
if screenX-v.x-v.leftCol >= v.lineNumOffset {
if screenX-v.x-v.leftCol+i >= v.lineNumOffset {
v.drawCell(screenX-v.leftCol+i, screenY, ' ', nil, lineStyle)
}
}