Add infobar

This commit is contained in:
Zachary Yedidia
2018-12-31 22:07:01 -05:00
parent 367a7bbb5f
commit f79d45aafb
11 changed files with 309 additions and 135 deletions

View File

@@ -47,7 +47,7 @@ func BufMapMouse(k MouseEvent, action string) {
// visual positions for mouse clicks and scrolling
type BufHandler struct {
Buf *buffer.Buffer
Win *display.BufWindow
Win display.Window
cursors []*buffer.Cursor
Cursor *buffer.Cursor // the active cursor
@@ -83,7 +83,7 @@ type BufHandler struct {
tripleClick bool
}
func NewBufHandler(buf *buffer.Buffer, win *display.BufWindow) *BufHandler {
func NewBufHandler(buf *buffer.Buffer, win display.Window) *BufHandler {
h := new(BufHandler)
h.Buf = buf
h.Win = win