Commit 57a58db1 authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

history: update pos after compact

parent 2d75a453
...@@ -78,8 +78,8 @@ func (h *History) Init() error { ...@@ -78,8 +78,8 @@ func (h *History) Init() error {
func (h *History) Add(l []rune) { func (h *History) Add(l []rune) {
h.Buf.Add(l) h.Buf.Add(l)
h.Pos = h.Size()
h.Compact() h.Compact()
h.Pos = h.Size()
if h.Autosave { if h.Autosave {
h.Save() h.Save()
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment