Add basic typing functionality

This commit is contained in:
EnumDev committed 2025-06-04 16:00:52 +03:00
1 parent 2f7f483563
commit b52729646c
3 files changed
+59 -8

No files matched your search

+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++
}