mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 14:47:16 +09:00
Add beginning of cellview as well as improved ViewTypes
This is the beginning of the view refactor (#515). It's just the start and is untested for now.
This commit is contained in:
@@ -11,12 +11,16 @@ import (
|
||||
"github.com/zyedidia/tcell"
|
||||
)
|
||||
|
||||
type ViewType int
|
||||
type ViewType struct {
|
||||
readonly bool // The file cannot be edited
|
||||
scratch bool // The file cannot be saved
|
||||
}
|
||||
|
||||
const (
|
||||
vtDefault ViewType = iota
|
||||
vtHelp
|
||||
vtLog
|
||||
var (
|
||||
vtDefault = ViewType{false, false}
|
||||
vtHelp = ViewType{true, true}
|
||||
vtLog = ViewType{true, true}
|
||||
vtScratch = ViewType{false, true}
|
||||
)
|
||||
|
||||
// The View struct stores information about a view into a buffer.
|
||||
|
||||
Reference in New Issue
Block a user