mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
@@ -403,7 +403,6 @@ func main() {
|
|||||||
L.SetGlobal("Reload", luar.New(L, LoadAll))
|
L.SetGlobal("Reload", luar.New(L, LoadAll))
|
||||||
L.SetGlobal("ByteOffset", luar.New(L, ByteOffset))
|
L.SetGlobal("ByteOffset", luar.New(L, ByteOffset))
|
||||||
L.SetGlobal("ToCharPos", luar.New(L, ToCharPos))
|
L.SetGlobal("ToCharPos", luar.New(L, ToCharPos))
|
||||||
L.SetGlobal("NewViewType", luar.New(L, NewViewType))
|
|
||||||
|
|
||||||
// Used for asynchronous jobs
|
// Used for asynchronous jobs
|
||||||
L.SetGlobal("JobStart", luar.New(L, JobStart))
|
L.SetGlobal("JobStart", luar.New(L, JobStart))
|
||||||
|
|||||||
@@ -13,14 +13,9 @@ import (
|
|||||||
|
|
||||||
// The ViewType defines what kind of view this is
|
// The ViewType defines what kind of view this is
|
||||||
type ViewType struct {
|
type ViewType struct {
|
||||||
kind int
|
Kind int
|
||||||
readonly bool // The file cannot be edited
|
Readonly bool // The file cannot be edited
|
||||||
scratch bool // The file cannot be saved
|
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}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
Reference in New Issue
Block a user