This commit is contained in:
Michael Yang
2023-12-15 14:07:34 -08:00
parent acfc376efd
commit 2bb2bdd5d4
11 changed files with 15 additions and 15 deletions

View File

@@ -23,7 +23,7 @@ type History struct {
func NewHistory() (*History, error) {
h := &History{
Buf: arraylist.New(),
Limit: 100, //resizeme
Limit: 100, // resizeme
Autosave: true,
Enabled: true,
}
@@ -84,7 +84,7 @@ func (h *History) Add(l []rune) {
h.Compact()
h.Pos = h.Size()
if h.Autosave {
h.Save()
_ = h.Save()
}
}