mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +09:00
More actions and window organization
This commit is contained in:
20
cmd/micro/editpane.go
Normal file
20
cmd/micro/editpane.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user