Add onBufferOpen plugin callback

Closes #948
This commit is contained in:
Zachary Yedidia
2018-01-08 17:08:11 -05:00
parent 9a6054fc43
commit 3f01101da4
5 changed files with 20 additions and 9 deletions

View File

@@ -277,6 +277,8 @@ func (v *View) OpenBuffer(buf *Buffer) {
// is opened
v.isOverwriteMode = false
v.lastClickTime = time.Time{}
GlobalPluginCall("onBufferOpen", v.Buf)
}
// Open opens the given file in the view