diff --git a/cmd/micro/micro.go b/cmd/micro/micro.go index 275f58ce..b74cf672 100644 --- a/cmd/micro/micro.go +++ b/cmd/micro/micro.go @@ -403,7 +403,6 @@ func main() { L.SetGlobal("Reload", luar.New(L, LoadAll)) L.SetGlobal("ByteOffset", luar.New(L, ByteOffset)) L.SetGlobal("ToCharPos", luar.New(L, ToCharPos)) - L.SetGlobal("NewViewType", luar.New(L, NewViewType)) // Used for asynchronous jobs L.SetGlobal("JobStart", luar.New(L, JobStart)) diff --git a/cmd/micro/view.go b/cmd/micro/view.go index d20ef3ce..21712972 100644 --- a/cmd/micro/view.go +++ b/cmd/micro/view.go @@ -13,14 +13,9 @@ import ( // The ViewType defines what kind of view this is type ViewType struct { - kind int - readonly bool // The file cannot be edited - scratch bool // The file cannot be saved -} - -// NewViewType creates a new ViewType - useful for plugins -func NewViewType(kind int, readonly, scratch bool) ViewType { - return ViewType{kind, readonly, scratch} + Kind int + Readonly bool // The file cannot be edited + Scratch bool // The file cannot be saved } var (