Add vertical and horizontal scrolling

This commit is contained in:
2025-06-10 20:42:32 +03:00
parent e3d5b46465
commit 7b140c4298
4 changed files with 94 additions and 42 deletions
+7 -4
View File
@@ -8,10 +8,13 @@ import (
)
type Buffer struct {
Id int
Name string
Contents string
CursorPos int
Id int
Name string
Contents string
CursorPos int
OffsetX, OffsetY int
Selection *Selection
canSave bool