From 296fa8b4ac7129a530e9b9cddfc3de4c04b480ee Mon Sep 17 00:00:00 2001 From: "Luke I. Wilson" Date: Tue, 23 Mar 2021 18:47:58 -0500 Subject: [PATCH] Remove comment --- ui/textedit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/textedit.go b/ui/textedit.go index 3eab94c..cc0419a 100644 --- a/ui/textedit.go +++ b/ui/textedit.go @@ -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