From 02b5f94ee1068f171085b468fe920e41307a3e84 Mon Sep 17 00:00:00 2001 From: bloeys Date: Sun, 27 Feb 2022 14:53:08 +0400 Subject: [PATCH] TODO --- editor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/editor.go b/editor.go index fa0ae11..6555d21 100755 --- a/editor.go +++ b/editor.go @@ -133,6 +133,7 @@ func (e *Editor) Render(drawStartPos, winSize *imgui.Vec2) { dl.AddLineV(lineStart, lineEnd, imgui.PackedColorFromVec4(imgui.Vec4{Z: 0.7, W: 1}), settings.CursorWidthFactor*e.CharWidth) } +//TODO: The offset chars must be how many grid cols between cursor col and the nearest non-tab char. func getTabs(l *Line, col int) (tabCount, charsToOffsetBy int) { for i := 0; i < len(l.chars) && i < col; i++ {