More actions and window organization

This commit is contained in:
Zachary Yedidia
2018-08-28 18:44:52 -04:00
parent 06d596e780
commit 7d87e6db99
11 changed files with 539 additions and 177 deletions

20
cmd/micro/editpane.go Normal file
View File

@@ -0,0 +1,20 @@
package main
import (
"github.com/zyedidia/micro/cmd/micro/action"
"github.com/zyedidia/micro/cmd/micro/buffer"
"github.com/zyedidia/micro/cmd/micro/display"
)
type EditPane struct {
display.Window
action.Handler
}
func NewBufEditPane(x, y, width, height int, b *buffer.Buffer) *EditPane {
e := new(EditPane)
e.Window = display.NewBufWindow(x, y, width, height, b)
e.Handler = action.NewBufHandler(b)
return e
}