Check buffer filetype after loading plugins

This commit is contained in:
Zachary Yedidia
2016-09-24 14:30:35 -04:00
parent de4a007bdf
commit 64fd96611c

View File

@@ -337,6 +337,8 @@ func main() {
for _, t := range tabs {
for _, v := range t.views {
v.Buf.FindFileType()
v.Buf.UpdateRules()
for _, pl := range loadedPlugins {
_, err := Call(pl+".onViewOpen", v)
if err != nil && !strings.HasPrefix(err.Error(), "function does not exist") {