Remove comment
This commit is contained in:
parent
3be12bdff1
commit
296fa8b4ac
@ -338,7 +338,7 @@ func (t *TextEdit) Draw(s tcell.Screen) {
|
|||||||
lineStr = strings.ReplaceAll(lineStr, "\t", tabStr)
|
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...
|
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
|
lineRunes = lineRunes[t.scrollx:] // Trim left side of string we cannot see
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user