Improve gutter messages

This commit is contained in:
Zachary Yedidia
2019-08-03 23:53:33 -07:00
parent ccb5904591
commit bc6dd990e5
8 changed files with 52 additions and 21 deletions

View File

@@ -67,6 +67,10 @@ func (w *BufWindow) SetActive(b bool) {
w.active = b
}
func (w *BufWindow) IsActive() bool {
return w.active
}
func (w *BufWindow) getStartInfo(n, lineN int) ([]byte, int, int, *tcell.Style) {
tabsize := util.IntOpt(w.Buf.Settings["tabsize"])
width := 0

View File

@@ -63,6 +63,7 @@ func (i *InfoWindow) Relocate() bool { return false }
func (i *InfoWindow) GetView() *View { return i.View }
func (i *InfoWindow) SetView(v *View) {}
func (i *InfoWindow) SetActive(b bool) {}
func (i *InfoWindow) IsActive() bool { return true }
func (i *InfoWindow) GetMouseLoc(vloc buffer.Loc) buffer.Loc {
c := i.Buffer.GetActiveCursor()

View File

@@ -40,6 +40,10 @@ func (w *TermWindow) SetActive(b bool) {
w.active = b
}
func (w *TermWindow) IsActive() bool {
return w.active
}
func (w *TermWindow) GetMouseLoc(vloc buffer.Loc) buffer.Loc {
return vloc
}

View File

@@ -23,6 +23,7 @@ type Window interface {
GetMouseLoc(vloc buffer.Loc) buffer.Loc
Resize(w, h int)
SetActive(b bool)
IsActive() bool
}
type BWindow interface {