Add basic typing functionality

This commit is contained in:
2025-06-04 16:00:52 +03:00
parent 2f7f483563
commit b52729646c
3 changed files with 59 additions and 8 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ func drawLineIndex(window *Window) {
y = 1
}
for lineIndex := 1; lineIndex <= strings.Count(buffer.Contents, "\n") && lineIndex < sizeY; lineIndex++ {
for lineIndex := 1; lineIndex <= strings.Count(buffer.Contents, "\n")+1 && lineIndex < sizeY; lineIndex++ {
drawText(screen, 0, y, 3, y, lineIndexStyle, strconv.Itoa(lineIndex)+". ")
y++
}