Make onViewOpen and onBufferOpen the same

Ref #948
This commit is contained in:
Zachary Yedidia
2018-01-22 15:27:56 -05:00
parent 63299df4b9
commit 4f41881c10
3 changed files with 4 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@@ -279,6 +279,7 @@ func (v *View) OpenBuffer(buf *Buffer) {
v.lastClickTime = time.Time{}
GlobalPluginCall("onBufferOpen", v.Buf)
GlobalPluginCall("onViewOpen", v)
}
// Open opens the given file in the view