mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-24 07:50:23 +09:00
@@ -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))
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user