mirror of
https://github.com/EnumeratedDev/typer.git
synced 2026-10-31 19:31:48 +00:00
Add basic typing functionality
This commit is contained in:
1 parent
2f7f483563
commit
b52729646c
3 files changed
+59
-8
No files matched your search
+1
-1
@@ -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++
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user