mirror of
https://github.com/Hopiu/micro.git
synced 2026-05-09 23:34:42 +00:00
parent
b8debb5404
commit
def2b28d4e
1 changed files with 5 additions and 4 deletions
|
|
@ -11,15 +11,16 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type ViewType struct {
|
type ViewType struct {
|
||||||
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
vtDefault = ViewType{false, false}
|
vtDefault = ViewType{0, false, false}
|
||||||
vtHelp = ViewType{true, true}
|
vtHelp = ViewType{1, true, true}
|
||||||
vtLog = ViewType{true, true}
|
vtLog = ViewType{2, true, true}
|
||||||
vtScratch = ViewType{false, true}
|
vtScratch = ViewType{3, false, true}
|
||||||
)
|
)
|
||||||
|
|
||||||
// The View struct stores information about a view into a buffer.
|
// The View struct stores information about a view into a buffer.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue