Revert "Improve performance for very long lines"

This reverts commit d5694c0f35.

Fixes #351
See #348
This commit is contained in:
Zachary Yedidia
2016-09-11 16:04:23 -04:00
parent 0bc80adc28
commit d0fa467a3c
3 changed files with 2 additions and 24 deletions

View File

@@ -690,15 +690,8 @@ func (v *View) DisplayView() {
}
// Now we actually draw the line
colN := v.leftCol
screenX += v.leftCol
charNum = Loc{v.leftCol, charNum.Y}
for _, ch := range Sub(line, v.leftCol, v.leftCol+v.width) {
if screenX-v.leftCol > v.x+v.width {
charNum = charNum.Move(Count(line[:v.leftCol+v.width]), v.Buf)
break
}
colN := 0
for _, ch := range line {
lineStyle := defStyle
if v.Buf.Settings["syntax"].(bool) {