Remove comment

This commit is contained in:
Luke I. Wilson 2021-03-23 18:47:58 -05:00
parent 3be12bdff1
commit 296fa8b4ac

View File

@ -338,7 +338,7 @@ func (t *TextEdit) Draw(s tcell.Screen) {
lineStr = strings.ReplaceAll(lineStr, "\t", tabStr)
}
lineRunes := []rune(lineStr) // TODO: something more efficient here
lineRunes := []rune(lineStr)
if len(lineRunes) >= t.scrollx { // If some of the line is visible at our horizontal scroll...
lineRunes = lineRunes[t.scrollx:] // Trim left side of string we cannot see