history: update pos after compact

This commit is contained in:
Jeffrey Morgan 2023-10-27 20:38:03 -07:00
parent 2d75a4537c
commit 57a58db1b0

View file

@ -78,8 +78,8 @@ func (h *History) Init() error {
func (h *History) Add(l []rune) {
h.Buf.Add(l)
h.Pos = h.Size()
h.Compact()
h.Pos = h.Size()
if h.Autosave {
h.Save()
}