Add more option support

This commit is contained in:
Zachary Yedidia
2019-01-24 18:25:59 -05:00
parent 0e4faf108d
commit ef18fc572c
4 changed files with 23 additions and 20 deletions

View File

@@ -306,10 +306,14 @@ func (b *Buffer) ReOpen() error {
b.ModTime, err = GetModTime(b.Path)
b.isModified = false
b.RelocateCursors()
return err
}
func (b *Buffer) RelocateCursors() {
for _, c := range b.cursors {
c.Relocate()
}
return err
}
// RuneAt returns the rune at a given location in the buffer