Add onBufferOpen plugin callback

This commit is contained in:
Zachary Yedidia
2016-08-24 17:03:02 -07:00
parent dbdfef632e
commit 0711c29c0a
4 changed files with 21 additions and 9 deletions

View File

@@ -189,6 +189,7 @@ func (v *View) OpenBuffer(buf *Buffer) {
v.leftCol = 0
v.Cursor.ResetSelection()
v.Relocate()
v.Center(false)
v.messages = make(map[string][]GutterMessage)
v.matches = Match(v)