mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-21 14:44:45 +00:00
Check buffer filetype after loading plugins
This commit is contained in:
parent
de4a007bdf
commit
64fd96611c
1 changed files with 2 additions and 0 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Reference in a new issue