Reorganize info bar

This commit is contained in:
Zachary Yedidia
2019-01-01 22:36:12 -05:00
parent 78ce7a5f0f
commit c01995c1b6
8 changed files with 57 additions and 44 deletions

View File

@@ -13,7 +13,7 @@ import (
)
type InfoWindow struct {
*info.Bar
*info.InfoBuf
*View
defStyle tcell.Style
@@ -23,9 +23,9 @@ type InfoWindow struct {
y int
}
func NewInfoWindow(b *info.Bar) *InfoWindow {
func NewInfoWindow(b *info.InfoBuf) *InfoWindow {
iw := new(InfoWindow)
iw.Bar = b
iw.InfoBuf = b
iw.View = new(View)
iw.defStyle = config.DefStyle