Fix serialization

This commit is contained in:
Zachary Yedidia
2018-08-29 20:53:40 -04:00
parent ab37901f98
commit 47c899ae46
6 changed files with 68 additions and 51 deletions

View File

@@ -85,10 +85,7 @@ func NewBufHandler(buf *buffer.Buffer) *BufHandler {
h := new(BufHandler)
h.Buf = buf
h.cursors = []*buffer.Cursor{&buffer.Cursor{
Buf: buf,
Loc: buf.StartCursor,
}}
h.cursors = []*buffer.Cursor{buffer.NewCursor(buf, buf.StartCursor)}
h.Cursor = h.cursors[0]
buf.SetCursors(h.cursors)