This commit is contained in:
bloeys
2022-02-27 14:53:08 +04:00
parent 3c3b480ec5
commit 02b5f94ee1

View File

@ -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++ {